Skip to content

Commit

Permalink
Disable loading boot.bin on shelled environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 18, 2024
1 parent d681a28 commit b8425e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rishka_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ bool RishkaVM::loadFile(const char* fileName) {
if(!SD.exists(absoluteFilename))
return false;

if(absoluteFilename == "/bin/boot.bin")
return false;

File file = SD.open(absoluteFilename);
if(!file) {
file.close();
Expand Down

0 comments on commit b8425e1

Please sign in to comment.