Skip to content

Commit

Permalink
unbreaking things
Browse files Browse the repository at this point in the history
This reverts commit b98bbd6.
  • Loading branch information
zefie committed Nov 26, 2013
1 parent b98bbd6 commit 80793e2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions host/hackrf-tools/src/hackrf_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ struct command{
#endif
static void *command_worker(void *arg)
{
int left, received;
int left, received, gain;
fd_set readfds;
struct command cmd={0, 0};
struct timeval tv= {1, 0};
Expand Down Expand Up @@ -366,7 +366,6 @@ static void *command_worker(void *arg)
hackrf_set_amp_enable(dev, ntohl(cmd.param));
break;
case 0x04:
<<<<<<< HEAD
gain = (ntohl(cmd.param) / 10);
if (gain > 42) {
gain = 40;
Expand All @@ -377,11 +376,6 @@ static void *command_worker(void *arg)
printf("set lna & vga gain %d\n", gain);
hackrf_set_lna_gain(dev, gain);
hackrf_set_vga_gain(dev, gain);
=======
printf("set lna & vga gain %d\n", ntohl(cmd.param));
hackrf_set_lna_gain(dev, ntohl(cmd.param));
hackrf_set_vga_gain(dev, ntohl(cmd.param));
>>>>>>> parent of 47c30e5... adjust gain emulation
break;
case 0x05:
printf("[ignored] set freq correction %d\n", ntohl(cmd.param));
Expand Down

0 comments on commit 80793e2

Please sign in to comment.