From bf08b484830ef4e811faf67ec663ebf839b5d09b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Mon, 9 Dec 2024 16:43:23 +0000 Subject: [PATCH] Fix regression with software updates to Storage --- js/comms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/comms.js b/js/comms.js index 506df1d..0b943ef 100644 --- a/js/comms.js +++ b/js/comms.js @@ -293,7 +293,7 @@ const Comms = { getAppInfo : app => { var cmd; if (Const.FILES_IN_FS) cmd = `\x10${Const.CONNECTION_DEVICE}.println(require("fs").readFileSync(${JSON.stringify(AppInfo.getAppInfoFilename(app))})||"null")\n`; - else cmd = `\x10${Const.CONNECTION_DEVICE}.println(require("fs").readFileSync(${JSON.stringify("APPINFO/"+AppInfo.getAppInfoFilename(app))})||"null")\n`; + else cmd = `\x10${Const.CONNECTION_DEVICE}.println(require("Storage").read(${JSON.stringify(AppInfo.getAppInfoFilename(app))})||"null")\n`; return Comms.write(cmd). then(appJSON=>{ let app;