mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17716 from benpicco/drivers/dose-watchdog_users
drivers/dose: only disable watchdog when transiting from RECV state
This commit is contained in:
commit
0082252b66
@ -201,12 +201,12 @@ static dose_signal_t state_transit_idle(dose_t *ctx, dose_signal_t signal)
|
||||
(void) ctx;
|
||||
(void) signal;
|
||||
|
||||
_watchdog_stop();
|
||||
|
||||
if (ctx->state == DOSE_STATE_RECV) {
|
||||
bool dirty = ctx->flags & DOSE_FLAG_RECV_BUF_DIRTY;
|
||||
bool done = ctx->flags & DOSE_FLAG_END_RECEIVED;
|
||||
|
||||
_watchdog_stop();
|
||||
|
||||
/* We got here from RECV state. The driver's thread has to look
|
||||
* if this frame should be processed. By queuing NETDEV_EVENT_ISR,
|
||||
* the netif thread will call _isr at some time. */
|
||||
|
Loading…
Reference in New Issue
Block a user