zephyr/subsys/modem
Bjarki Arge Andreasen 494fab8ea4 modem: chat: patch unintended behavior in modem_chat_run_script()
Trying to start a chat script using either modem_chat_run_script()
or modem_chat_run_script_async() should result in returning -EBUSY
without affecting the currently running script and thread waiting
on the current script to stop.

The current behavior causes the thread waiting for the current
script to stop to return with error -EAGAIN, and the thread trying
to start the new script to return with error -EBUSY.

This commit moves the reset of the sem the current thread is
waiting on, to after the check of whether a script is currently
running, leaving the current thread unaffected as is intended.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-13 17:49:23 +02:00
..
backends modem: backend: uart: async: Implement modem backend stat 2024-05-20 14:40:06 +03:00
CMakeLists.txt modem: add modem_pipelink module 2024-06-10 15:12:34 -05:00
Kconfig modem: add modem_pipelink module 2024-06-10 15:12:34 -05:00
modem_chat.c modem: chat: patch unintended behavior in modem_chat_run_script() 2024-06-13 17:49:23 +02:00
modem_cmux.c modem: cmux: Implement modem backend statistics 2024-05-20 14:40:06 +03:00
modem_pipe.c modem: pipe: Add TRANSMIT_IDLE event 2024-01-11 16:09:44 +00:00
modem_pipelink.c modem: add modem_pipelink module 2024-06-10 15:12:34 -05:00
modem_ppp.c modem: ppp: implement modem_statistics 2024-05-20 14:40:06 +03:00
modem_stats.c modem: backend: Add statistics module 2024-05-20 14:40:06 +03:00
modem_ubx.c ADD: GNSS Driver for U-BLOX M10 & Support for UBX Messages 2024-03-26 09:28:36 +00:00