kopia lustrzana https://github.com/Hamlib/Hamlib
Merge pull request #320 from hiteki/hiteki_319
Correctly compare response strings #319pull/322/head
commit
d61d1c13e1
|
@ -187,7 +187,7 @@ transaction_write:
|
||||||
goto transaction_quit;
|
goto transaction_quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(data, "OK"EOM))
|
if (strcmp(data, "OK"EOM) == 0)
|
||||||
{
|
{
|
||||||
/* everything is fine */
|
/* everything is fine */
|
||||||
retval = RIG_OK;
|
retval = RIG_OK;
|
||||||
|
@ -198,7 +198,7 @@ transaction_write:
|
||||||
* in the right mode or using the correct parameters. ERR indicates
|
* in the right mode or using the correct parameters. ERR indicates
|
||||||
* an INVALID Command.
|
* an INVALID Command.
|
||||||
*/
|
*/
|
||||||
if (strcmp(data, "NG"EOM) || strcmp(data, "ORER"EOM))
|
if (strcmp(data, "NG"EOM) == 0 || strcmp(data, "ORER"EOM) == 0)
|
||||||
{
|
{
|
||||||
/* Invalid command */
|
/* Invalid command */
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: NG/Overflow for '%s'\n", __func__, cmdstr);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: NG/Overflow for '%s'\n", __func__, cmdstr);
|
||||||
|
@ -206,7 +206,7 @@ transaction_write:
|
||||||
goto transaction_quit;
|
goto transaction_quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(data, "ERR"EOM))
|
if (strcmp(data, "ERR"EOM) == 0)
|
||||||
{
|
{
|
||||||
/* Command format error */
|
/* Command format error */
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: Error for '%s'\n", __func__, cmdstr);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: Error for '%s'\n", __func__, cmdstr);
|
||||||
|
|
Ładowanie…
Reference in New Issue