Mercurial > public > ostc4
comparison Small_CPU/Src/scheduler.c @ 643:5149cd644fbc
Reimplemented charger status generation (deactivated):
Sometimes the original implementation never reached the state fully charged for unknown reason. The code already contained a function which set the status to fully charger even it was not signaled by the charger (in case voltage is > 4.1V). The new implementation changed the handling of the detection and the OSTC showing the problem now reaches the fully charger status.
As the new implementation is still under test it is deactivated => original implementation is active per default
author | Ideenmodellierer |
---|---|
date | Wed, 24 Mar 2021 22:06:00 +0100 |
parents | 3328189786e7 |
children | 1b995079c045 |
comparison
equal
deleted
inserted
replaced
642:c737cf5d9067 | 643:5149cd644fbc |
---|---|
884 } | 884 } |
885 else | 885 else |
886 { | 886 { |
887 global.lifeData.desaturation_time_minutes = 0; | 887 global.lifeData.desaturation_time_minutes = 0; |
888 } | 888 } |
889 battery_charger_get_status_and_contral_battery_gas_gauge(0); | |
890 battery_gas_gauge_get_data(); | 889 battery_gas_gauge_get_data(); |
890 battery_charger_get_status_and_contral_battery_gas_gauge(1); | |
891 | 891 |
892 copyCnsAndOtuData(); | 892 copyCnsAndOtuData(); |
893 copyTimeData(); | 893 copyTimeData(); |
894 copyBatteryData(); | 894 copyBatteryData(); |
895 copyDeviceData(); | 895 copyDeviceData(); |
1079 if(secondsCount >= 30) | 1079 if(secondsCount >= 30) |
1080 { | 1080 { |
1081 pressure_sensor_get_temperature_raw(); | 1081 pressure_sensor_get_temperature_raw(); |
1082 battery_gas_gauge_get_data(); | 1082 battery_gas_gauge_get_data(); |
1083 // ReInit_battery_charger_status_pins(); | 1083 // ReInit_battery_charger_status_pins(); |
1084 battery_charger_get_status_and_contral_battery_gas_gauge(1); | 1084 battery_charger_get_status_and_contral_battery_gas_gauge(30); |
1085 // DeInit_battery_charger_status_pins(); | 1085 // DeInit_battery_charger_status_pins(); |
1086 secondsCount = 0; | 1086 secondsCount = 0; |
1087 } | 1087 } |
1088 | 1088 |
1089 pressure_calculation(); | 1089 pressure_calculation(); |