Skip to content

Commit

Permalink
Fix oled compile on Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Jun 18, 2019
1 parent 00bf307 commit 8cd7d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/oled/FPPOLEDUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
#include "SSD1306_OLED.h"

#include "FPPOLEDUtils.h"
#if defined(PLATFORM_BBB)
#include "channeloutput/BBBUtils.h"
#endif

#include <linux/wireless.h>
#include <sys/ioctl.h>
Expand Down Expand Up @@ -273,7 +275,9 @@ void FPPOLEDUtils::run() {
OLEDPage::SetForcedOff(forcedOff);
if (lastForcedOff && !forcedOff) {
//re-enable
#ifdef PLATFORM_BBB
getBBBPinByName(controlPin).setValue(1);
#endif
}
if (currentStatus->displayOn && forcedOff) {
currentStatus->displayOn = false;
Expand Down

0 comments on commit 8cd7d0c

Please sign in to comment.