comparison Discovery/Src/data_exchange_main.c @ 436:079f32a8e68c Improve_BatteryGasGauge

Moved power on detection to RTE: Removed no longer needed funtion to reset the charger status in case of an power on reset
author ideenmodellierer
date Sun, 23 Feb 2020 21:18:49 +0100
parents 3f7d80f37bfc
children f1257a32f2d4
comparison
equal deleted inserted replaced
435:8851702173e0 436:079f32a8e68c
414 if(!wasUpdateNotPowerOn) 414 if(!wasUpdateNotPowerOn)
415 wasPowerOn = 1; 415 wasPowerOn = 1;
416 416
417 settingsHelperButtonSens_keepPercentageValues(settingsGetPointerStandard()->ButtonResponsiveness[3], settings->ButtonResponsiveness); 417 settingsHelperButtonSens_keepPercentageValues(settingsGetPointerStandard()->ButtonResponsiveness[3], settings->ButtonResponsiveness);
418 setButtonResponsiveness(settings->ButtonResponsiveness); 418 setButtonResponsiveness(settings->ButtonResponsiveness);
419
420 // hw 160720 new lastKnownBatteryPercentage
421 if(!wasUpdateNotPowerOn)
422 {
423 // dataOut.data.newBatteryGaugePercentageFloat = settingsGetPointer()->lastKnownBatteryPercentage;
424 dataOut.data.newBatteryGaugePercentageFloat = 0;
425 dataOut.setBatteryGaugeNow = 1;
426 }
427 } 419 }
428 } 420 }
429 421
430 422
431 void DataEX_copy_to_deco(void) 423 void DataEX_copy_to_deco(void)