From 03c2fa34e2677eb8653e7948a2482973474b65c3 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Tue, 20 Aug 2024 11:42:17 +0800 Subject: [PATCH] Remove heltec-specific gps code from main.cpp 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. --- protobufs | 2 +- src/main.cpp | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/protobufs b/protobufs index 4eb4f42517..666b481ae0 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit 4eb4f425170f08839abc6ececd13e8db30094ad5 +Subproject commit 666b481ae02f1f88ec30f10a2d80184b31c0fc4e diff --git a/src/main.cpp b/src/main.cpp index b6af60d2cd..f4fb24fa91 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -294,21 +294,11 @@ void setup() digitalWrite(VEXT_ENABLE, 0); // turn on the display power #endif -#if defined(VGNSS_CTRL_V03) - pinMode(VGNSS_CTRL_V03, OUTPUT); - digitalWrite(VGNSS_CTRL_V03, LOW); -#endif - #if defined(VTFT_CTRL_V03) pinMode(VTFT_CTRL_V03, OUTPUT); digitalWrite(VTFT_CTRL_V03, LOW); #endif -#if defined(VGNSS_CTRL) - pinMode(VGNSS_CTRL, OUTPUT); - digitalWrite(VGNSS_CTRL, LOW); -#endif - #if defined(VTFT_CTRL) pinMode(VTFT_CTRL, OUTPUT); digitalWrite(VTFT_CTRL, LOW); @@ -1121,4 +1111,4 @@ void loop() } // if (didWake) LOG_DEBUG("wake!\n"); } -#endif \ No newline at end of file +#endif