Wrong test for size of General data at load time

This commit is contained in:
bsongis
2012-01-26 18:40:39 +00:00
parent cf955a7a60
commit be6385bf2f
+1 -1
View File
@@ -56,7 +56,7 @@ bool eeLoadGeneral()
}
}
if (sz >= sizeof(EEGeneral)) {
if (sz <= sizeof(EEGeneral)) {
uint16_t sum=0;
for(int i=0; i<12;i++) sum+=g_eeGeneral.calibMid[i];
return g_eeGeneral.chkSum == sum;