Skip to content

Commit

Permalink
[bootloader] Fix exam mode with Epsilon 16-19
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaya-Cout committed Feb 29, 2024
1 parent 1953371 commit 2374fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootloader/interface/static/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Messages {
constexpr static const char * aboutMessage4 = "and select the OS";
constexpr static const char * aboutMessage5 = "to boot.";

constexpr static const char * bootloaderVersion = "Version 1.0.9 - FREED0M.22";
constexpr static const char * bootloaderVersion = "Version 1.0.10 - FREED0M.22.2";

//USB NAMES
constexpr static const char * usbUpsilonBootloader = "NumWorks Calculator";
Expand Down
4 changes: 2 additions & 2 deletions bootloader/slots/slot_exam_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ uint8_t SlotsExamMode::FetchSlotExamMode(const char * version, const char * Slot
end = getSlotAEndExamAddress(0);
}
// Else versions before 22
else if (version[0] == '2' && version[1] < '2') {
else if ((version[0] == '2' && version[1] < '2') || (version[0] == '1')) {
start = getSlotAStartExamAddress(1);
end = getSlotAEndExamAddress(1);
}
Expand All @@ -68,7 +68,7 @@ uint8_t SlotsExamMode::FetchSlotExamMode(const char * version, const char * Slot
end = getSlotBEndExamAddress(0);
}
// Else versions before 22
else if (version[0] == '2' && version[1] < '2') {
else if ((version[0] == '2' && version[1] < '2') || (version[0] == '1')) {
start = getSlotBStartExamAddress(1);
end = getSlotBEndExamAddress(1);
}
Expand Down

0 comments on commit 2374fe4

Please sign in to comment.