mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
don't destroy our temperature log when waking from sleep
This commit is contained in:
parent
f98bc9bb4e
commit
88f41b12fc
|
@ -50,8 +50,10 @@ void _thermistor_logging_face_update_display(thermistor_logger_state_t *logger_s
|
|||
|
||||
void thermistor_logging_face_setup(movement_settings_t *settings, void ** context_ptr) {
|
||||
(void) settings;
|
||||
if (*context_ptr == NULL) *context_ptr = malloc(sizeof(thermistor_logger_state_t));
|
||||
memset(*context_ptr, 0, sizeof(thermistor_logger_state_t));
|
||||
if (*context_ptr == NULL) {
|
||||
*context_ptr = malloc(sizeof(thermistor_logger_state_t));
|
||||
memset(*context_ptr, 0, sizeof(thermistor_logger_state_t));
|
||||
}
|
||||
}
|
||||
|
||||
void thermistor_logging_face_activate(movement_settings_t *settings, void *context) {
|
||||
|
|
Loading…
Reference in a new issue