Skip to content

Commit

Permalink
Update Launcher.ino
Browse files Browse the repository at this point in the history
Adjusted Magic Numbers to work with Volos watch app
  • Loading branch information
bmorcelli authored Feb 21, 2024
1 parent caa5ddd commit b49eba8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Launcher/Launcher.ino
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,12 @@ void loop() {

// Verify if the first 3 bytes are different from 0xE9 0x05 0x02 (meaning that the file have Bootloader, partitions and application)
//
if (firstThreeBytes[0] == 0xE9 && (firstThreeBytes[1] == 0x05 || firstThreeBytes[1] == 0x06) && firstThreeBytes[2] == 0x02) {
if (firstThreeBytes[0] == 0xE9 && (firstThreeBytes[1] == 0x05 || firstThreeBytes[1] == 0x06 || firstThreeBytes[1] == 0x07) && firstThreeBytes[2] == 0x02) {

// firstThreeBytes[1] == 0x05 -> C++ Apps
// firstThreeBytes[1] == 0x06 -> MicroPython (work in progress, might need to change bootloader in the future
// firstThreeBytes[1] == 0x07 -> Come apps are comming with this MagicNumber (Volos Watch)

Serial.println("Status: Binary is an apllication");
updateFromFS(SD,PreFolder + "/" + fileList[selectIndex - folderListCount], LNSD_CS_PIN);
ESP.restart();
Expand Down

0 comments on commit b49eba8

Please sign in to comment.