diff 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
line wrap: on
line diff
--- a/Discovery/Src/data_exchange_main.c	Sun Feb 23 21:17:17 2020 +0100
+++ b/Discovery/Src/data_exchange_main.c	Sun Feb 23 21:18:49 2020 +0100
@@ -416,14 +416,6 @@
 		
 		settingsHelperButtonSens_keepPercentageValues(settingsGetPointerStandard()->ButtonResponsiveness[3], settings->ButtonResponsiveness);
 		setButtonResponsiveness(settings->ButtonResponsiveness);
-		
-		// hw 160720 new lastKnownBatteryPercentage
-		if(!wasUpdateNotPowerOn)
-		{
-//			dataOut.data.newBatteryGaugePercentageFloat = settingsGetPointer()->lastKnownBatteryPercentage;
-			dataOut.data.newBatteryGaugePercentageFloat = 0;
-			dataOut.setBatteryGaugeNow = 1;
-		}
 	}
 }