From d6f262512c82e3910f830ffbe5feeb8172ae5216 Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Sat, 12 Feb 2022 12:00:06 +0000 Subject: [PATCH] Have two G-records in the IGC: 1st with SHA256, 2nd with the signature --- main/nmea.h | 2 +- main/sdlog.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/main/nmea.h b/main/nmea.h index ff603b2..6917dee 100644 --- a/main/nmea.h +++ b/main/nmea.h @@ -11,7 +11,7 @@ inline uint8_t NMEA_AppendCheckCRNL(char *NMEA, uint8_t Len) { return NMEA_Appen class NMEA_RxMsg // receiver for the NMEA sentences { public: - static const uint8_t MaxLen=104; // maximum length + static const uint8_t MaxLen=120; // maximum length static const uint8_t MaxParms=24; // maximum number of parameters (commas) uint8_t Data[MaxLen]; // the message itself uint8_t Len; // number of bytes diff --git a/main/sdlog.cpp b/main/sdlog.cpp index 79389ba..ae92aae 100644 --- a/main/sdlog.cpp +++ b/main/sdlog.cpp @@ -277,8 +277,11 @@ static void IGC_Check(void) // check if int SigLen = IGC_SignKey.Sign_MD5_SHA256(Sig, IGC_Digest, IGC_Digest_Size); int Len=0; Line[Len++]='G'; // produce G-record with SH256 -// for(int Idx=0; Idx