one more tweak

master
Gordon Williams 2023-02-01 08:48:56 +00:00 committed by GitHub
parent e0929fb90e
commit 07f83d50df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ Bluetooth.on('line',function(l) {
});\n`; });\n`;
} else { } else {
if (s.log>=2) boot += `_DBGLOG=require("Storage").open("log.txt","a"); 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`; 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 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 else boot += `Bluetooth.setConsole(true);\n`; // else if no debug, force REPL to Bluetooth