Skip to content
Snippets Groups Projects
Commit a8374b52 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

second part of commit 0b1b1a6f

parent 0b1b1a6f
No related branches found
No related tags found
No related merge requests found
Pipeline #5275 passed
......@@ -169,11 +169,17 @@ static bbs_startup_t* startup=NULL;
static void set_state(enum server_state state)
{
static int curr_state;
if(state == curr_state)
return;
if(startup != NULL) {
if(startup->set_state != NULL)
startup->set_state(startup->cbdata, state);
mqtt_server_state(&mqtt, state);
}
curr_state = state;
}
static void update_clients()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment