mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-30 08:24:14 +01:00
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:
parent
4d3cdd9004
commit
6de1a34cd7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user