From 6526d2ce483474102c26b66d53c37ff3a319b1e1 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 2 Sep 2026 18:32:06 +0200 Subject: [PATCH] Refactor comment in bwm_wifi_forward_down Simplified comment in bwm_wifi_forward_down function. Signed-off-by: Niel Nielsen --- armsrc/bwm_wifi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/armsrc/bwm_wifi.c b/armsrc/bwm_wifi.c index 94783199c..d0cdb9fed 100644 --- a/armsrc/bwm_wifi.c +++ b/armsrc/bwm_wifi.c @@ -256,12 +256,7 @@ int bwm_wifi_forward_status(uint8_t *state, uint32_t *ip_out) { } int bwm_wifi_forward_down(void) { - // The ESP tears down the STA + TCP server and persists to NVS BEFORE it acks, - // and its command task blocks during the teardown - so that ack can outlast - // any timeout or be dropped. A plain ack-wait therefore reports failure on a - // disable that actually worked. Instead: fire the disable, then CONFIRM by - // polling the connect status. Once WiFi is gone the status query returns a - // non-timeout error (the subsystem is down) - that is our proof of success. + // Once WiFi is gone the status query returns a non-timeout error. (void)bwm_cmd(BWM_CMD_SET_TO_WIFI_DISABLE_MODE, NULL, 0, NULL, NULL, 3000); uint32_t t0 = GetTickCount();