aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-04-08 00:14:08 +0200
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-06-24 01:46:33 +0400
commit9e5e208b6effd8949d6af2c267ad265806763b9f (patch)
tree8ae9e181d4edad333a085a2ec96658c1317a84a2
parent8f47387777a182562d3a9b2e21f48822dc4ebb0f (diff)
Transceier52M: Make error response to an unknown command on UDP command interface more understandable.
Previously we just repeated the last response which could confuse a command sender.
-rw-r--r--Transceiver52M/Transceiver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 47da48a..423821d 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -628,6 +628,7 @@ void Transceiver::driveControl()
}
else {
LOG(WARNING) << "bogus command " << command << " on control interface.";
+ sprintf(response,"RSP ERR 1");
}
mControlSocket.write(response,strlen(response)+1);