check M20 crc first, before decoding serial number

This commit is contained in:
Hansi, dl9rdz 2022-01-23 23:57:08 +00:00
parent b0c28d6774
commit 18dab7be33
2 changed files with 2 additions and 1 deletions

View File

@ -556,6 +556,7 @@ int M10M20::decodeframeM20(uint8_t *data) {
}
Serial.println(crcok?"CRC OK":"CRC NOT OK");
Serial.printf(" repair: %d/%d\n", repl, repairstep);
if(!crcok) return 2;
Serial.println("Decoding...");
// Its a M20

View File

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20220121";
const char *version_id = "devel20220123";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=16;