kopia lustrzana https://github.com/meshtastic/firmware
Better #define guard for PIN_EINK_EN
rodzic
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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue