Wrong test for size of General data at load time
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ bool eeLoadGeneral()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sz >= sizeof(EEGeneral)) {
|
if (sz <= sizeof(EEGeneral)) {
|
||||||
uint16_t sum=0;
|
uint16_t sum=0;
|
||||||
for(int i=0; i<12;i++) sum+=g_eeGeneral.calibMid[i];
|
for(int i=0; i<12;i++) sum+=g_eeGeneral.calibMid[i];
|
||||||
return g_eeGeneral.chkSum == sum;
|
return g_eeGeneral.chkSum == sum;
|
||||||
|
|||||||
Reference in New Issue
Block a user