Better #define guard for PIN_EINK_EN

pull/1867/head
timo 2022-10-27 17:59:53 -07:00
rodzic 154b7d256c
commit 6146b773cf
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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
}

Wyświetl plik

@ -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