Skip to content

Commit

Permalink
drivers/optiups.c: Shuffle lines to keep declarations before operations
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Oct 5, 2023
1 parent 45e40b0 commit 9327fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/optiups.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ void upsdrv_updateinfo(void)
if ( optimodel == OPTIMODEL_ZINTO )
optifill( _pollv_zinto, sizeof(_pollv_zinto)/sizeof(_pollv_zinto[0]) );
else if ( optimodel == OPTIMODEL_PS ) {
optifill( _pollv_ps, sizeof(_pollv_ps)/sizeof(_pollv_ps[0]) );

short inV, outV, fV;

optifill( _pollv_ps, sizeof(_pollv_ps)/sizeof(_pollv_ps[0]) );

r = optiquery( "NV" );
str_to_short ( _buf, &inV, 10 );
r = optiquery( "OV" );
Expand Down

0 comments on commit 9327fa5

Please sign in to comment.