From 4a9e5212b131e6f0a09ce05ec74fbeffc253bae6 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sun, 19 May 2024 02:21:29 +0800 Subject: [PATCH] Fixed RishkaVM::loadFile() implementation. --- src/rishka_vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rishka_vm.cpp b/src/rishka_vm.cpp index 992b0f9..7e063f3 100644 --- a/src/rishka_vm.cpp +++ b/src/rishka_vm.cpp @@ -71,7 +71,7 @@ bool RishkaVM::loadFile(const char* fileName, bool enableBoot) { if(!SD.exists(absoluteFilename)) return false; - if(enableBoot && absoluteFilename == "/bin/boot.bin") + if(!enableBoot && absoluteFilename == "/bin/boot.bin") return false; File file = SD.open(absoluteFilename);