mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Update MD.ino
This commit is contained in:
parent
d8d9716aa3
commit
928d82be86
@ -1293,22 +1293,26 @@ void readROM_MD() {
|
|||||||
//println_Msg(F("s"));
|
//println_Msg(F("s"));
|
||||||
//display_Update();
|
//display_Update();
|
||||||
|
|
||||||
// Calculate and compare CRC32 with no-intro
|
|
||||||
compareCRC("md.txt", 0);
|
|
||||||
|
|
||||||
// Calculate internal checksum
|
// Calculate internal checksum
|
||||||
|
print_Msg(F("Internal checksum..."));
|
||||||
|
display_Update();
|
||||||
if (chksum == calcCKS) {
|
if (chksum == calcCKS) {
|
||||||
println_Msg(F("Internal checksum OK"));
|
println_Msg(F("OK"));
|
||||||
display_Update();
|
display_Update();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_Msg(F("Internal checksum Error: "));
|
println_Msg(F("Error"));
|
||||||
char calcsumStr[5];
|
char calcsumStr[5];
|
||||||
sprintf(calcsumStr, "%04X", calcCKS);
|
sprintf(calcsumStr, "%04X", calcCKS);
|
||||||
println_Msg(calcsumStr);
|
println_Msg(calcsumStr);
|
||||||
print_Error(F(""), false);
|
print_Error(F(""), false);
|
||||||
display_Update();
|
display_Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Calculate and compare CRC32 with no-intro
|
||||||
|
compareCRC("md.txt", 0);
|
||||||
|
|
||||||
|
// More checksums
|
||||||
if (SnKmode >= 2) {
|
if (SnKmode >= 2) {
|
||||||
if (chksumLockon == calcCKSLockon) {
|
if (chksumLockon == calcCKSLockon) {
|
||||||
println_Msg(F("Checksum2 OK"));
|
println_Msg(F("Checksum2 OK"));
|
||||||
|
Loading…
Reference in New Issue
Block a user