aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-04-08 00:14:08 +0200
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-19 23:59:12 -0400
commit2fb62ea45e8287821175558e1d75209b46355348 (patch)
tree5ac52bffd45e22d312b27b3e3d3ee1239b02aa1b /Transceiver52M/Transceiver.cpp
parentfeb4028b1b16c69ac363e3db550d54a7792242db (diff)
Transceier52M: Make error response to an unknown command on UDP command interface more understandable.fairwaves/master-old
Previously we just repeated the last response which could confuse a command sender.
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r--Transceiver52M/Transceiver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index cff0b3a..1e80018 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -759,6 +759,7 @@ void Transceiver::driveControl(size_t chan)
}
else {
LOG(WARNING) << "bogus command " << command << " on control interface.";
+ sprintf(response,"RSP ERR 1");
}
mCtrlSockets[chan]->write(response, strlen(response) + 1);