mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-06 18:57:42 +01:00
rtl_tcp: fix printing of if gain values
This commit is contained in:
parent
f1803fe10f
commit
698a8a152e
@ -344,8 +344,8 @@ static void *command_worker(void *arg)
|
|||||||
break;
|
break;
|
||||||
case 0x06:
|
case 0x06:
|
||||||
tmp = ntohl(cmd.param);
|
tmp = ntohl(cmd.param);
|
||||||
printf("set if stage %d, gain %d\n", tmp >> 16, tmp & 0xffff);
|
printf("set if stage %d gain %d\n", tmp >> 16, (short)(tmp & 0xffff));
|
||||||
rtlsdr_set_tuner_if_gain(dev, tmp >> 16, tmp & 0xffff);
|
rtlsdr_set_tuner_if_gain(dev, tmp >> 16, (short)(tmp & 0xffff));
|
||||||
break;
|
break;
|
||||||
case 0x07:
|
case 0x07:
|
||||||
printf("set test mode %d\n", ntohl(cmd.param));
|
printf("set test mode %d\n", ntohl(cmd.param));
|
||||||
|
Loading…
Reference in New Issue
Block a user