Cart_Reader.ino: Catch-all condition for page 3

Makes it clear to the compiler that no other page exist, and hence
option_offset and num_answers are always initialised.
This commit is contained in:
Vincent Pelletier 2022-11-05 01:01:58 +00:00
parent 4d3cdd9004
commit 6de1a34cd7

View File

@ -936,12 +936,10 @@ void mainMenu() {
if (currPage == 1) {
option_offset = 0;
num_answers = 7;
}
if (currPage == 2) {
} else if (currPage == 2) {
option_offset = 7;
num_answers = 7;
}
if (currPage == 3) {
} else { // currPage == 3
option_offset = 14;
num_answers = 2;
}