From 07f83d50df9d24d1d1da07693d7853e20987ea33 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 1 Feb 2023 08:48:56 +0000 Subject: [PATCH] one more tweak --- apps/boot/bootupdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/boot/bootupdate.js b/apps/boot/bootupdate.js index f8fab16a1..4e4af928d 100644 --- a/apps/boot/bootupdate.js +++ b/apps/boot/bootupdate.js @@ -58,7 +58,7 @@ Bluetooth.on('line',function(l) { });\n`; } else { if (s.log>=2) boot += `_DBGLOG=require("Storage").open("log.txt","a"); -LoopbackB.on('data',function(d) {_DBGLOG.write(d);Terminal.write(d);}); +LoopbackB.on('data',function(d) {_DBGLOG.write(d);${(s.log==3)?"Terminal.write(d);":""}}); if (!NRF.getSecurityStatus().connected) LoopbackA.setConsole();\n`; else if (s.log==1||s.log==3) boot += `if (!NRF.getSecurityStatus().connected) Terminal.setConsole();\n`; // if showing debug, put REPL on terminal (until connection) else boot += `Bluetooth.setConsole(true);\n`; // else if no debug, force REPL to Bluetooth