From 2fb62ea45e8287821175558e1d75209b46355348 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Mon, 8 Apr 2013 00:14:08 +0200 Subject: 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. --- Transceiver52M/Transceiver.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Transceiver52M/Transceiver.cpp') 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); -- cgit v1.2.3