Better #define guard for PIN_EINK_EN

This commit is contained in:
timo
2022-10-27 17:59:53 -07:00
parent 154b7d256c
commit 6146b773cf
2 changed files with 2 additions and 2 deletions

View File

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