From 4438a9fd8f561c3e78e6acb85756aa096e7240e7 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Mon, 8 Apr 2013 00:14:08 +0200 Subject: Transceiver: 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. Signed-off-by: Tom Tsou --- Transceiver52M/Transceiver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 75d61f3..5763772 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -838,6 +838,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); -- cgit v1.2.3