mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-17 18:53:30 +00:00
Better #define guard for PIN_EINK_EN
This commit is contained in:
parent
154b7d256c
commit
6146b773cf
@ -159,7 +159,7 @@ class ButtonThread : public concurrency::OSThread
|
||||
|
||||
static void userButtonDoublePressed()
|
||||
{
|
||||
#if defined(USE_EINK)
|
||||
#if defined(USE_EINK) && defined(PIN_EINK_EN)
|
||||
digitalWrite(PIN_EINK_EN, digitalRead(PIN_EINK_EN) == LOW);
|
||||
#endif
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ bool Power::setup()
|
||||
void Power::shutdown()
|
||||
{
|
||||
|
||||
#if defined(USE_EINK)
|
||||
#if defined(USE_EINK) && defined(PIN_EINK_EN)
|
||||
digitalWrite(PIN_EINK_EN, LOW); //power off backlight first
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user