From 77cf87cc540e5fe4b1f28a3623bb9109b6ec710d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 24 Jan 2022 06:10:25 -0700 Subject: [PATCH] dump unknown wiresx command if DEBUG --- reflector/YSFProtocol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reflector/YSFProtocol.cpp b/reflector/YSFProtocol.cpp index f8828cc..cf82b95 100644 --- a/reflector/YSFProtocol.cpp +++ b/reflector/YSFProtocol.cpp @@ -826,7 +826,9 @@ bool CYsfProtocol::IsValidwirexPacket(const CBuffer &Buffer, CYSFFICH *Fich, CCa } else { - std::cout << "Wires-X unknown command" << std::endl; +#ifdef DEBUG + Dump("Unknown Wires-X command:", command + 1U, 3); +#endif *Cmd = WIRESX_CMD_UNKNOWN; *Arg = 0; valid = false;