comparison Discovery/Src/data_central.c @ 138:cc9c18075e00 FlipDisplay

Removed no longer supported scooter code
author Ideenmodellierer
date Sat, 23 Feb 2019 21:10:51 +0100
parents 5f11787b4f42
children e1d66bc78f9a
comparison
equal deleted inserted replaced
137:9eda5a75c5fd 138:cc9c18075e00
962 if(lifeData->pressure_ambient_bar < (lifeData->pressure_surface_bar + 0.04f)) 962 if(lifeData->pressure_ambient_bar < (lifeData->pressure_surface_bar + 0.04f))
963 return true; 963 return true;
964 else 964 else
965 return false; 965 return false;
966 } 966 }
967
968 uint8_t stateUsed_scooterRemainingBattCapacity(void)
969 {
970 const uint8_t useCapacityValue = 1; // 2 is the new one, 1 = scooterRestkapazitaetWhBased is the official used
971
972 switch(useCapacityValue)
973 {
974 case 0:
975 default:
976 return stateUsed->lifeData.scooterRestkapazitaet;
977
978 case 1:
979 return stateUsed->lifeData.scooterRestkapazitaetWhBased;
980
981 case 2:
982 return stateUsed->lifeData.scooterRestkapazitaetVoltageBased;
983 }
984 }