[bootloader] Fix exam mode with Epsilon 16-19

This commit is contained in:
Yaya-Cout
2024-02-29 12:49:58 +01:00
parent 1953371266
commit 2374fe4cf8
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public:
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";

View File

@@ -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);
}
@@ -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);
}