Skip to content

Commit bac17b7

Browse files
Luiskyrzr
authored andcommitted
uic: zpc: UIC-3625: FUNC_ID_SERIAL_API_STARTED received during ZPC init sequence
FUNC_ID_SERIAL_API_STARTED received during ZPC init sequence breaks its NM state machine later. (cherry picked from commit cb000bc9129fbf694ecf6964a49abc15f8b50ec4) Forwarded: #11 Signed-off-by: Philippe Coval <[email protected]>
1 parent 304a8b1 commit bac17b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

applications/zpc/components/zwave_api/src/zwapi_init.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@ sl_status_t zwapi_refresh_capabilities(void)
178178
return SL_STATUS_FAIL;
179179
}
180180

181+
/*
182+
* One or more Serial API Request(s) could have been stored during the execution of:
183+
* zwapi_session_send_frame_with_response(FUNC_ID_SERIAL_API_GET_CAPABILITIES, ...)
184+
* (in the case of a FUNC_ID_SERIAL_API_STARTED request, this can break ZPC network management state machine later)
185+
*/
186+
187+
zwapi_session_flush_queue();
188+
181189
if (zwapi_support_command_func(FUNC_ID_SERIAL_API_SETUP)) {
182190
response_length = 0;
183191
uint8_t index = 0;

0 commit comments

Comments
 (0)