Skip to content

Commit

Permalink
SAFETY MECHANISM: If scan off, yet queue enabled for any reason, disa…
Browse files Browse the repository at this point in the history
…ble it. Prevents prior bug.
  • Loading branch information
Kragg Malak committed Dec 17, 2023
1 parent 2d64045 commit 4a130ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions esp32_marauder/WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4825,4 +4825,7 @@ void WiFiScan::main(uint32_t currentTime)
packets_sent = 0;
}
}
else if ((currentScanMode == WIFI_SCAN_OFF))
if(gps_obj.queue_enabled())
gps_obj.disable_queue();
}

0 comments on commit 4a130ed

Please sign in to comment.