From b49eba82eb7dc1a090fc6d6cabfb0fc15938af1c Mon Sep 17 00:00:00 2001 From: bmorcelli <104320209+bmorcelli@users.noreply.github.com> Date: Wed, 21 Feb 2024 08:14:48 -0300 Subject: [PATCH] Update Launcher.ino Adjusted Magic Numbers to work with Volos watch app --- Launcher/Launcher.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Launcher/Launcher.ino b/Launcher/Launcher.ino index 50167fc..95214b5 100644 --- a/Launcher/Launcher.ino +++ b/Launcher/Launcher.ino @@ -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();