Skip to content

Commit 9c96098

Browse files
committed
Disable Bluetooth and ESP-NOW during web config
This frees ~50k of RAM.
1 parent 4f43e48 commit 9c96098

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,10 @@ void stateUpdate()
420420

421421
displayWebConfigNotStarted(); // Display immediately while we wait for server to start
422422

423-
// TODO - Do we need to stop BT and ESP-NOW during web config or can we leave it running?
424-
// bluetoothStop();
425-
// espnowStop();
423+
bluetoothStop(); // Bluetooth must be stopped to allow enough RAM for AP+STA (firmware check)
424+
espnowStop(); // We don't need ESP-NOW during web config
426425

427-
// tasksStopGnssUart(); // Delete serial tasks if running
426+
// The GNSS UART task is left running to allow non-ZED platforms to obtain LLh data for 1Hz page updates
428427

429428
// Stop any running NTRIP Client or Server
430429
ntripClientStop(true); // Do not allocate new wifiClient

0 commit comments

Comments
 (0)