mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-25 06:25:29 +00:00
ui : manage colors and ensure fw using ssd1306 still compile
This commit is contained in:
@@ -38,7 +38,7 @@ void SSD1306Display::setTextSize(int sz) {
|
||||
}
|
||||
|
||||
void SSD1306Display::setColor(Color c) {
|
||||
_color = (c == LIGHT) ? SSD1306_WHITE : SSD1306_BLACK;
|
||||
_color = (c != 0) ? SSD1306_WHITE : SSD1306_BLACK;
|
||||
display.setTextColor(_color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user