mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-31 21:55:55 +00:00
If the thread that sends the configuration messages has low priority and is sending to the local node (a common use case currently) it's possible that the response arrives before the cli->op_* state variables are set, resulting in the message never getting properly processed and the client API call timing out. Split the initialization into a separete cli_prepare() call and add a cli_reset() to clean up the variables in case of premature completion of the client operation (e.g. due to message sending failure). Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
common | ||
controller | ||
host | ||
shell | ||
CMakeLists.txt | ||
Kconfig |