From 8961e1a353ee551b76d38437d1a489ad459c09a7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 6 Apr 2024 10:51:10 +0200 Subject: [PATCH] ChirpChat modulator: implemented Gray coding for FT --- plugins/channeltx/modchirpchat/chirpchatmodencoderft.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/channeltx/modchirpchat/chirpchatmodencoderft.cpp b/plugins/channeltx/modchirpchat/chirpchatmodencoderft.cpp index 8e50699da..b36511add 100644 --- a/plugins/channeltx/modchirpchat/chirpchatmodencoderft.cpp +++ b/plugins/channeltx/modchirpchat/chirpchatmodencoderft.cpp @@ -84,6 +84,7 @@ void ChirpChatModEncoderFT::encodeMsg( if ((i % nbSymbolBits) == (nbSymbolBits - 1)) { + symbol = symbol ^ (symbol >> 1); // Gray code symbols.push_back(symbol); symbol = 0; }