diff --git a/app/pm/pmSleep.c b/app/pm/pmSleep.c index 0b084e139f..20ed23bfed 100644 --- a/app/pm/pmSleep.c +++ b/app/pm/pmSleep.c @@ -44,17 +44,17 @@ static void rearm_all_sw_timers(void){ } static void null_mode_check_timer_cb(void* arg){ - if (wifi_get_opmode() == NULL_MODE){ + + // if current opmode is NULL and uart 0 tx buffer is empty and uart 1 tx buffer is empty + if (wifi_get_opmode() == NULL_MODE && (READ_PERI_REG(UART_STATUS(0)) & (UART_TXFIFO_CNT<