From 395cf1442566fff9d92f798fa2dc1183b9403953 Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Sun, 1 Oct 2023 23:58:27 +0200 Subject: [PATCH] loconet: corrected LNCVReadResponse mask didn't detect response sent by https://github.com/mrrwa/LocoNet library --- .../src/hardware/protocol/loconet/message/uhlenbrock/lncv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/hardware/protocol/loconet/message/uhlenbrock/lncv.hpp b/server/src/hardware/protocol/loconet/message/uhlenbrock/lncv.hpp index 92935fbc..40021c11 100644 --- a/server/src/hardware/protocol/loconet/message/uhlenbrock/lncv.hpp +++ b/server/src/hardware/protocol/loconet/message/uhlenbrock/lncv.hpp @@ -145,7 +145,7 @@ static_assert(sizeof(LNCVRead) == 15); struct LNCVReadResponse : PeerXferDataMessage { static constexpr std::array magicData = {0x05, 0x49, 0x4B, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - static constexpr std::array magicMask = {0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFF}; + static constexpr std::array magicMask = {0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFF}; inline static bool check(const Message& message) {