Skip to content

Commit

Permalink
Fixed full example error
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 14, 2024
1 parent b3aeee1 commit 7fcb43b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/full_example/full_example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ void setup() {
while(true);
}

File file = SD.open("/hello.bin");
if(!file)
rishka_panic("Failed to open file.");

if(!rishka_vm_loadfile(file))
if(!rishka_vm_loadfile("/hello.bin"))
rishka_panic("Failed to load specified file.");

rishka_vm_run(0, NULL);
Expand Down

0 comments on commit 7fcb43b

Please sign in to comment.