diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2016-10-19 15:26:04 -0700 |
---|---|---|
committer | Tom Tsou <tom@tsou.cc> | 2016-10-25 18:48:25 +0000 |
commit | 365bc38beec7970d38b2c8644a1998103671684a (patch) | |
tree | a051b0975337e840f338cbaed9b0c84fd16d420c /Transceiver52M/Transceiver.cpp | |
parent | 43242efc859932efd956fc82db7b3c52d0ba8f5b (diff) |
transceiver: Fix command build warning
Place conditional brackets on handover table reset. Reset table
only on successful start or restart.
Change-Id: I74032b49785bd68835a0a68cb0f14cdaab4fcd26
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r-- | Transceiver52M/Transceiver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 4db0aaa..f156ad4 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -744,14 +744,15 @@ void Transceiver::driveControl(size_t chan) sprintf(response,"RSP POWEROFF 0"); } else if (strcmp(command,"POWERON")==0) { - if (!start()) + if (!start()) { sprintf(response,"RSP POWERON 1"); - else + } else { sprintf(response,"RSP POWERON 0"); for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) mHandover[i][j] = false; } + } } else if (strcmp(command,"HANDOVER")==0){ int ts=0,ss=0; |