Skip to content

Commit 23710cf

Browse files
committed
Use return value from remove_nonprint()
Fix formatting glitch
1 parent a72397e commit 23710cf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

amplifiers/elecraft/kpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ int kpa_set_powerstat(AMP *amp, powerstat_t status)
586586

587587
default:
588588
rig_debug(RIG_DEBUG_ERR, "%s invalid status=%d\n", __func__, status);
589-
return -RIG_EINVAL;
589+
return -RIG_EINVAL;
590590

591591
}
592592

rigs/kenwood/kenwood.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,7 @@ int kenwood_transaction(RIG *rig, const char *cmdstr, char *data,
490490
// message; if it isn't (usually '\r') then don't touch the message.
491491
if (isprint(caps->cmdtrm))
492492
{
493-
remove_nonprint(buffer);
494-
resp_len = strlen(buffer);
493+
resp_len = remove_nonprint(buffer);
495494
}
496495

497496
/* Check that command termination is correct */

0 commit comments

Comments
 (0)