Skip to content

Commit f24cb5a

Browse files
committed
Don't issue load() if uploading to RAM
1 parent affb080 commit f24cb5a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/codeWriter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
/* Get the command used to load the uploaded file */
9999
function getLoadCommand() {
100100
var ul = getUploadState();
101+
if (ul.isRAMUpload) return "";
101102
if (Espruino.Config.LOAD_STORAGE_FILE==2 && ul.isStorageUpload)
102103
return "\x10load("+Espruino.Core.Utils.toJSONishString(ul.filename)+")\n";
103104
else if (Espruino.Config.LOAD_STORAGE_FILE!=0)

0 commit comments

Comments
 (0)