don't destroy our temperature log when waking from sleep
This commit is contained in:
parent
f98bc9bb4e
commit
88f41b12fc
@ -50,9 +50,11 @@ 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));
|
||||
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) {
|
||||
(void) settings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user