kopia lustrzana https://github.com/Hamlib/Hamlib
Fix check for RIG_BUSBUSY
Fixes a cppcheck warning: rigs/icom/frame.c:510:19: style: Redundant condition: The condition 'i != 14' is redundant since 'i < 0' is sufficient. [redundantCondition] if (i < 0 && i != RIG_BUSBUSY) /* die on errors */pull/1273/head
rodzic
6c197dbc1c
commit
6f0efd59e6
|
@ -507,7 +507,7 @@ static int read_icom_frame_generic(hamlib_port_t *p,
|
|||
icom_block_end, icom_block_end_length, 0, 1);
|
||||
}
|
||||
|
||||
if (i < 0 && i != RIG_BUSBUSY) /* die on errors */
|
||||
if (i < 0 && i != -RIG_BUSBUSY) /* die on errors */
|
||||
{
|
||||
return (i);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue