if I'd like to disable the console mode on the BT port if running without a USB connection (for always running an application-specific interface on BT). How would I do that?
Is there an init/setup handler after the boot process? Espruino seems to load every other state fine from flash, but this setting would have to be done by an explicit call.
For now I'm calling USB.setConsole() every time in the onData handler of Serial1 which does not seem to be extremely elegant. Also I'm missing a way of flushing/purging the output buffer of the BT port (it otherwise still will transfer "Console Moved to USB" as well as some initial data on first connect)
Any hints on an boot/init handler and that flushing of the output buffer?