add: more debugging
This commit is contained in:
parent
852d4fe7fa
commit
6ab71ca316
3 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project(core
|
||||
VERSION 0.2.9
|
||||
VERSION 0.2.10
|
||||
LANGUAGES C)
|
||||
|
||||
add_executable(core src/main.c)
|
||||
|
|
|
@ -157,6 +157,7 @@ relay_save(relay_t *relay)
|
|||
}
|
||||
}
|
||||
|
||||
LOGGER_DEBUG("rebuilding relay_schedule junction\n");
|
||||
junction_relay_schedule_remove_for_relay(relay->id);
|
||||
for(int i = 0; i < 7; ++i)
|
||||
{
|
||||
|
|
|
@ -35,6 +35,7 @@ status_reload_entry(int relay_id)
|
|||
relays[i]->is_on = is_on_backup;
|
||||
relay_status_list_json_str = NULL;
|
||||
relay_status_list_json_str_len = 0;
|
||||
|
||||
cache_invalidate_relay(relay_id);
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +54,8 @@ status_update_entry(int relay_id, int is_on)
|
|||
relays[i]->is_on = is_on;
|
||||
relay_status_list_json_str = NULL;
|
||||
relay_status_list_json_str_len = 0;
|
||||
|
||||
cache_invalidate_relay(relay_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue