Skip to content

Commit f21e4d5

Browse files
committed
Update Graphics.cpp
Fix for last commit, it was needed in .cpp file too as in .h.
1 parent a8d1422 commit f21e4d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/Graphics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void Graphics::endWrite()
208208
{
209209
}
210210

211-
#ifndef ARDUINO_INKPLATECOLOR
211+
#if !defined(ARDUINO_INKPLATECOLOR) && !defined(ARDUINO_INKPLATE2)
212212

213213
/**
214214
* @brief setDisplayMode sets display mode
@@ -231,7 +231,6 @@ uint8_t Graphics::getDisplayMode()
231231
{
232232
return _displayMode;
233233
}
234-
#endif
235234

236235
/**
237236
* @brief selectDisplayMode selects display mode and sets memory
@@ -251,6 +250,7 @@ void Graphics::selectDisplayMode(uint8_t _mode)
251250
memset(DMemory4Bit, 255, 240000);
252251
}
253252
}
253+
#endif
254254

255255
/**
256256
* @brief width function returns screen width

0 commit comments

Comments
 (0)