Skip to content

Commit

Permalink
demo: fix cursor default value
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Feb 9, 2024
1 parent 8fa00e9 commit 486c092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware-demo/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void demos_menu() {
"Лінії", "Шайба", "М'ячик", "Епілепсія", "Летріс", "<< Назад",
};
int count = sizeof(demos) / sizeof(demos[0]);
int cursor;
int cursor = 0;
while (1) {
cursor = lilka::ui_menu("Оберіть демо:", demos, count, cursor);
if (cursor == count - 1) {
Expand Down Expand Up @@ -103,7 +103,7 @@ void loop() {
"Браузер SD-карти",
"Про систему",
};
int cursor;
int cursor = 0;
int count = sizeof(menu) / sizeof(menu[0]);
while (1) {
cursor = lilka::ui_menu("Головне меню", menu, count, cursor);
Expand Down

0 comments on commit 486c092

Please sign in to comment.