Remove heltec-specific gps code from main.cpp (#4508)

After the recent GPS power work we have an clear set of
definitions for turning GPS on and off. Rather than manipulating
specific heltec tracker-related pins in main setu, the relevant
power management code in the GPS module will turn things
on/off later as needed.
This commit is contained in:
Tom Fifield 2024-08-20 19:19:02 +08:00 committed by GitHub
parent ef5279e85e
commit 3b2c37c47f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,21 +294,11 @@ void setup()
digitalWrite(VEXT_ENABLE, 0); // turn on the display power digitalWrite(VEXT_ENABLE, 0); // turn on the display power
#endif #endif
#if defined(VGNSS_CTRL_V03)
pinMode(VGNSS_CTRL_V03, OUTPUT);
digitalWrite(VGNSS_CTRL_V03, LOW);
#endif
#if defined(VTFT_CTRL_V03) #if defined(VTFT_CTRL_V03)
pinMode(VTFT_CTRL_V03, OUTPUT); pinMode(VTFT_CTRL_V03, OUTPUT);
digitalWrite(VTFT_CTRL_V03, LOW); digitalWrite(VTFT_CTRL_V03, LOW);
#endif #endif
#if defined(VGNSS_CTRL)
pinMode(VGNSS_CTRL, OUTPUT);
digitalWrite(VGNSS_CTRL, LOW);
#endif
#if defined(VTFT_CTRL) #if defined(VTFT_CTRL)
pinMode(VTFT_CTRL, OUTPUT); pinMode(VTFT_CTRL, OUTPUT);
digitalWrite(VTFT_CTRL, LOW); digitalWrite(VTFT_CTRL, LOW);
@ -1121,4 +1111,4 @@ void loop()
} }
// if (didWake) LOG_DEBUG("wake!\n"); // if (didWake) LOG_DEBUG("wake!\n");
} }
#endif #endif