fix(v14): OLED brightness wraps above 235 (#7633)

Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-08-12 07:25:11 +10:00
committed by GitHub
co-authored by Peter Feerick Claude Sonnet 5
parent c8499366a2
commit b6e52f5ee3
5 changed files with 21 additions and 21 deletions
+6 -2
View File
@@ -390,7 +390,9 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
IS_RADIOMASTER_ZORRO(board);
case MaxContrast:
if (IS_TARANIS_SMALL(board))
if (getCapability(board, LcdOLED))
return 254;
else if (IS_TARANIS_SMALL(board))
return 30;
else
return 45;
@@ -399,7 +401,9 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
return 23;
case MinContrast:
if (IS_TARANIS_X9(board))
if (getCapability(board, LcdOLED))
return 2;
else if (IS_TARANIS_X9(board))
return 0;
else
return 10;