Skip to content

Commit

Permalink
Fix OLED displays. Refactor setDisplayBrightness function to use uint…
Browse files Browse the repository at this point in the history
…16_t instead of uint32_t
  • Loading branch information
melkati committed Jun 10, 2024
1 parent b82f774 commit 317717d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CO2_Gadget_OLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void setDisplayReverse(bool reverse) {
shouldRedrawDisplay = true;
}

void setDisplayBrightness(uint32_t newBrightness) {
void setDisplayBrightness(uint16_t newBrightness) {
Serial.printf("-->[OLED] Setting display brightness value at %d\n", newBrightness);
u8g2.setContrast(newBrightness);
actualDisplayBrightness = newBrightness;
Expand Down

0 comments on commit 317717d

Please sign in to comment.