Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed May 4, 2024
1 parent ac8a1cd commit 946ab2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void dump_metadata(FILE *fp,uint8_t const * const buffer,int length,bool newline
{
int e = decode_int(cp,optlen);
fprintf(fp,"encoding %d ",e);
if(e >= NONE && e < UNUSED_ENCODING){
if(e >= NO_ENCODING && e < UNUSED_ENCODING){
switch(e){
case NO_ENCODING:
fprintf(fp,"none");
Expand Down
6 changes: 1 addition & 5 deletions radio_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,7 @@ bool decode_radio_commands(struct channel *chan,uint8_t const *buffer,int length
}
break;
case OUTPUT_ENCODING:
{
int const x = decode_int(cp,optlen);
if(x >= S16LE && x < UNUSED_ENCODING)
chan->output.encoding = x;
}
chan->output.encoding = decode_int(cp,optlen);
break;
default:
break;
Expand Down

0 comments on commit 946ab2d

Please sign in to comment.