diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp index 151aa5a584c4b66bff440fcdd0b62c9ddd6a1191..336f8e1b210ea45081e8283a2ea3941204b09313 100644 --- a/OLEDDisplay.cpp +++ b/OLEDDisplay.cpp @@ -74,6 +74,7 @@ void OLEDDisplay::setColor(OLEDDISPLAY_COLOR color) { void OLEDDisplay::setPixel(int16_t x, int16_t y) { if (x >= 0 && x < displayWidth && y >= 0 && y < displayHeight) { + switch (color) { case WHITE: buffer[x + (y / 8) * displayWidth] |= (1 << (y & 7)); break; case BLACK: buffer[x + (y / 8) * displayWidth] &= ~(1 << (y & 7)); break;