mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
fix(wio-tracker-l2): radios and codec idle when unused; buzzer and OTA fixes
- BLE (ESP32): fast advertising (20-30 ms) for 30 s, then 152.5 ms, as the nRF52 interface; the library default kept 30-60 ms forever - Live map tiles: the WiFi drops after a minute with nothing missing - ES8311 to standby while the I2S clocks are off, set up again before the amp comes on - Buzzer: no channel (DMA out of memory) waits out the samples instead of spinning above the UI loop - OTA: the image header check waits for its 16 bytes - Comments: P10 is just the LED; the LCD SPI clock is 40 MHz on the wire Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -110,7 +110,7 @@ static void install(HTTPClient& http, NetworkClientSecure& tls) {
|
||||
if (!ok) snprintf(s_msg, sizeof(s_msg), "Out of memory");
|
||||
while (ok && s_written < (uint32_t)len) {
|
||||
size_t avail = in->available();
|
||||
if (!avail) {
|
||||
if (!avail || (s_written == 0 && avail < 16)) { // the header check below wants its 16 bytes in one read
|
||||
if (!in->connected() || millis() - last_data > 20000) { snprintf(s_msg, sizeof(s_msg), "Download stalled"); ok = false; break; }
|
||||
vTaskDelay(pdMS_TO_TICKS(5));
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user