Skip to content

Commit 5db4eac

Browse files
authored
Merge pull request #91 from e-radionicacom/dev
Fix to return something in einkOn
2 parents 0c46ea5 + 69e1378 commit 5db4eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Inkplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void Inkplate::einkOff()
124124
int Inkplate::einkOn()
125125
{
126126
if (getPanelState() == 1)
127-
return;
127+
return 1;
128128
WAKEUP_SET;
129129
delay(2);
130130
PWRUP_SET;

src/Inkplate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Inkplate : public System, public Graphics
6060

6161
void setMCPForLowPower();
6262
#else
63-
void einkOn();
63+
int einkOn();
6464
void einkOff();
6565
void preloadScreen();
6666
uint8_t readPowerGood();

0 commit comments

Comments
 (0)