This commit is contained in:
bsongis
2014-06-05 19:32:29 +02:00
parent 77e9130c37
commit 35e5faa8ad
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -2441,11 +2441,11 @@ void opentxClose()
saveTimers();
#if defined(CPUARM) && defined(FRSKY)
if ((g_model.frsky.mAhPersistent) && (g_model.frsky.storedMah != frskyData.hub.currentConsumption)) {
if (g_model.frsky.mAhPersistent && g_model.frsky.storedMah!=frskyData.hub.currentConsumption) {
g_model.frsky.storedMah = frskyData.hub.currentConsumption;
eeDirty(EE_MODEL);
}
else if((!g_model.frsky.mAhPersistent) && (g_model.frsky.storedMah != 0)){
else if (!g_model.frsky.mAhPersistent && g_model.frsky.storedMah!=0) {
g_model.frsky.storedMah = 0;
eeDirty(EE_MODEL);
}