From caf654413cabb248ae77b84d00d89874ba378422 Mon Sep 17 00:00:00 2001 From: Daniel Brown <30573097+danielbrownjr@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:41:01 -0400 Subject: [PATCH 1/2] Fix download arbitration and session polling --- main/bandit_uplink.c | 53 ++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/main/bandit_uplink.c b/main/bandit_uplink.c index 83d92bc..299fe8d 100644 --- a/main/bandit_uplink.c +++ b/main/bandit_uplink.c @@ -35,6 +35,7 @@ #define BANDIT_UPLINK_AP_CACHE_MAX 64 #define BANDIT_UPLINK_SESSION_LIST_MAX 32 #define BANDIT_UPLINK_DOWNLOAD_BUFFER 2048 +#define BANDIT_UPLINK_DOWNLOAD_RADIO_WAIT_MS 15000 static const char *TAG = "bandit_uplink"; @@ -46,6 +47,7 @@ static bool s_first_attempt_resolved; static bool s_services_pending; static bool s_state_dirty; static bool s_scan_waiting; +static bool s_download_waiting; static char s_ssid[33]; static char s_ip[16]; static httpd_handle_t s_server; @@ -106,7 +108,7 @@ static const char s_status_page[] = "
TF sessions
Newest 32 sessions; active log may lag by the flush interval.
" "
loading...
" "