variants: Heltec T114: Disable LED and GPS when powering off
This should reduce power consumption in hibernation. Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
committed by
Frieder Schrempf
parent
5235516dc7
commit
32d622d969
@@ -48,6 +48,13 @@ public:
|
||||
}
|
||||
|
||||
void powerOff() override {
|
||||
#ifdef LED_PIN
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
#endif
|
||||
#if ENV_INCLUDE_GPS == 1
|
||||
pinMode(GPS_EN, OUTPUT);
|
||||
digitalWrite(GPS_EN, LOW);
|
||||
#endif
|
||||
sd_power_system_off();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user