Wrote most of the Encoders TX app (lacks baseband module)

Fixed menu scroll glitch
Added set_range to NumberField widget
This commit is contained in:
furrtek 2016-08-03 04:53:51 +02:00
parent e2218a0f32
commit 1b44b22419
9 changed files with 613 additions and 8 deletions

View file

@ -152,7 +152,7 @@ bool MenuView::set_highlighted(const size_t new_value) {
return false;
}
if ((new_value - offset_ + 1) >= MENU_MAX) {
if ((new_value > offset_) && ((new_value - offset_ + 1) >= MENU_MAX)) {
// Shift MenuView up
offset_ = new_value - MENU_MAX + 1;
update_items();