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

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