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:
co-authored by
Peter Feerick
Claude Sonnet 5
parent
c8499366a2
commit
b6e52f5ee3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user