diff --git a/firmware/common/ui_widget.cpp b/firmware/common/ui_widget.cpp index d2b040db..16c2829a 100644 --- a/firmware/common/ui_widget.cpp +++ b/firmware/common/ui_widget.cpp @@ -397,7 +397,7 @@ void OptionsField::set_selected_index(const size_t new_index) { void OptionsField::set_by_value(value_t v) { size_t new_index { 0 }; for(const auto& option : options) { - if( option.second >= v ) { + if( option.second == v ) { set_selected_index(new_index); break; }