mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +00:00
use BUTTON_PIN macro
This commit is contained in:
parent
d1db51830b
commit
30ebb6ae46
@ -280,8 +280,8 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
|
||||
|
||||
#if defined(HELTEC_WIRELESS_PAPER) || defined(HELTEC_WIRELESS_PAPER_V1_0) // Applicable to most ESP32 boards?
|
||||
// Avoid leakage through button pin
|
||||
pinMode(0, INPUT);
|
||||
rtc_gpio_hold_en((gpio_num_t)0);
|
||||
pinMode(BUTTON_PIN, INPUT);
|
||||
rtc_gpio_hold_en((gpio_num_t)BUTTON_PIN);
|
||||
|
||||
// LoRa CS (RADIO_NSS) needs to stay HIGH, even during deep sleep
|
||||
pinMode(LORA_CS, OUTPUT);
|
||||
|
Loading…
Reference in New Issue
Block a user