Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/io/osd_grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ static uint16_t osdUpdateSidebar(osd_sidebar_scroll_e scroll, osd_sidebar_t *sid
break;
}
if (offset) {
decoration -= steps % SYM_AH_DECORATION_COUNT;
// Higher symbol codes draw the tick marks lower inside the character cell,
// so adding the steps scrolls the scale down as the value goes up. This
// matches a primary flight display, where climbing or accelerating brings
// the higher numbers down towards the center marker.
decoration += steps % SYM_AH_DECORATION_COUNT;
if (decoration > SYM_AH_DECORATION_MAX) {
decoration -= SYM_AH_DECORATION_COUNT;
} else if (decoration < SYM_AH_DECORATION_MIN) {
Expand Down