In case eeGeneral increases it's accepted

This commit is contained in:
bsongis
2012-01-25 18:33:12 +00:00
parent d3ebb51176
commit f40a5445c9
+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;