diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 10:39:01 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 10:39:01 +0200 |
commit | 2187c3d6196f2a25bc0b74365358c9874dde3a46 (patch) | |
tree | 8b7d91024b77eb8aa1115103b17b2a4d7ef3d402 /lib/pbdrv/pb-route.c | |
parent | 8a80226e9dce394573e95d68fc9fe04592ad5907 (diff) |
more code documentation
Diffstat (limited to 'lib/pbdrv/pb-route.c')
-rw-r--r-- | lib/pbdrv/pb-route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pbdrv/pb-route.c b/lib/pbdrv/pb-route.c index 709fb7f..f5c32d6 100644 --- a/lib/pbdrv/pb-route.c +++ b/lib/pbdrv/pb-route.c @@ -58,8 +58,8 @@ __weak void pb_route_cmd_prop_set(pb_msg_t * msg) {} //! last known global state of last STATE REQ sender (i.e. main controller) static pb_global_state_t _main_state = PB_GS_NOINIT; -__weak void pb_hook_main_state_update(pb_global_state_t state) {} -__weak void pb_hook_module_init() { +__weak void pb_hook_ev_main_state_update(pb_global_state_t state) {} +__weak void pb_hook_ev_module_init() { pb_hook_mod_state_write(PB_GS_IDLE); } __weak void pb_route_cmd_state_req(pb_msg_t * msg) { @@ -69,8 +69,8 @@ __weak void pb_route_cmd_state_req(pb_msg_t * msg) { pb_cmd_state_t * cmd = msg->cmd; if (cmd->state != _main_state) { // first STATE REQ = module init OK - if (_main_state == PB_GS_NOINIT) pb_hook_module_init(); - pb_hook_main_state_update(cmd->state); + if (_main_state == PB_GS_NOINIT) pb_hook_ev_module_init(); + pb_hook_ev_main_state_update(cmd->state); } _main_state = cmd->state; |