kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in ic10.c
rodzic
4c29673781
commit
af934eb8e6
|
@ -740,6 +740,12 @@ int ic10_set_channel(RIG *rig, const channel_t *chan)
|
||||||
md
|
md
|
||||||
);
|
);
|
||||||
retval = ic10_transaction(rig, membuf, len, ackbuf, &ack_len);
|
retval = ic10_transaction(rig, membuf, len, ackbuf, &ack_len);
|
||||||
|
// I assume we need to check the retval here -- W9MDB
|
||||||
|
// This was found from cppcheck
|
||||||
|
if (retval != RIG_OK) {
|
||||||
|
rig_debug(RIG_DEBUG_ERR,"%s: transaction failed: %s\n", __func__, strerror(retval));
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue