Skip to content

Commit

Permalink
Check AQ_SET_PIN instead of EINK dependency (#3387)
Browse files Browse the repository at this point in the history
  • Loading branch information
wnagele authored Mar 12, 2024
1 parent cf11807 commit ee685b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void setup()
pinMode(PIN_3V3_EN, OUTPUT);
digitalWrite(PIN_3V3_EN, HIGH);
#endif
#ifndef USE_EINK
#ifdef AQ_SET_PIN
// RAK-12039 set pin for Air quality sensor
pinMode(AQ_SET_PIN, OUTPUT);
digitalWrite(AQ_SET_PIN, HIGH);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/nrf52/main-nrf52.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void cpuDeepSleep(uint32_t msecToWake)
#ifdef PIN_3V3_EN
digitalWrite(PIN_3V3_EN, LOW);
#endif
#ifndef USE_EINK
#ifdef AQ_SET_PIN
// RAK-12039 set pin for Air quality sensor
digitalWrite(AQ_SET_PIN, LOW);
#endif
Expand Down

0 comments on commit ee685b4

Please sign in to comment.