Skip to content

Commit

Permalink
fix offline notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Varanda authored and Marcelo Varanda committed Jan 8, 2025
1 parent 442da4b commit 33b8b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdp_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ static void cp_state_change(struct osdp_pd *pd, enum osdp_cp_state_e next)
notify_sc_status(pd);
LOG_ERR("Going offline for %d seconds; Was in '%s' state",
pd->wait_ms / 1000, state_get_name(cur));
notify_pd_status(pd, true);
notify_pd_status(pd, false);
break;
case OSDP_CP_STATE_SC_CHLNG:
osdp_sc_setup(pd);
Expand Down

0 comments on commit 33b8b7c

Please sign in to comment.