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.
This commit is contained in:
Alexander Chemeris
2013-04-08 00:14:08 +02:00
parent d10269bc17
commit aa89934815

View File

@@ -613,6 +613,7 @@ void Transceiver::driveControl()
}
else {
LOG(WARNING) << "bogus command " << command << " on control interface.";
sprintf(response,"RSP ERR 1");
}
mControlSocket.write(response,strlen(response)+1);