mirror of
https://github.com/pelgraine/Meck.git
synced 2026-07-29 04:42:41 +02:00
T-watch: fix gps toggle bug caused by previous spiffs+littlefs partition additions wipe and update
This commit is contained in:
@@ -3183,6 +3183,9 @@ void UITask::toggleGPS() {
|
||||
#if defined(LilyGo_TDeck_Pro_Max)
|
||||
board.gpsPowerOff(); // MAX: GPS power is XL9555-routed, not PIN_GPS_EN
|
||||
#endif
|
||||
#if defined(LILYGO_TWATCH_S3_PLUS)
|
||||
board.gpsPowerOff(); // Watch: GPS power is the AXP2101 BLDO1 rail
|
||||
#endif
|
||||
notify(UIEventType::ack);
|
||||
} else {
|
||||
// Enable GPS — power on hardware
|
||||
@@ -3194,6 +3197,9 @@ void UITask::toggleGPS() {
|
||||
#if defined(LilyGo_TDeck_Pro_Max)
|
||||
board.gpsPowerOn(); // MAX: GPS power is XL9555-routed, not PIN_GPS_EN
|
||||
#endif
|
||||
#if defined(LILYGO_TWATCH_S3_PLUS)
|
||||
board.gpsPowerOn(); // Watch: GPS power is the AXP2101 BLDO1 rail
|
||||
#endif
|
||||
notify(UIEventType::ack);
|
||||
}
|
||||
the_mesh.savePrefs();
|
||||
|
||||
Reference in New Issue
Block a user