From 07968f61b55c6798bcb6fbfd8de77ed8c1d45950 Mon Sep 17 00:00:00 2001 From: Paul Kendall Date: Sun, 10 Sep 2023 15:07:06 +1200 Subject: [PATCH] minor fixups --- src/js/espflasher.js | 2 +- src/js/index.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/espflasher.js b/src/js/espflasher.js index d18e96b..6a69f76 100644 --- a/src/js/espflasher.js +++ b/src/js/espflasher.js @@ -32,7 +32,7 @@ class ESPFlasher { initbaud = 115200 } - const transport = new TransportEx(this.device, true) + const transport = new TransportEx(this.device, false) this.esploader = new ESPLoader(transport, baudrate, this.term, initbaud === undefined ? baudrate : initbaud) this.esploader.ESP_RAM_BLOCK = 0x0800 // we override otherwise flashing on BF will fail diff --git a/src/js/index.js b/src/js/index.js index fcd10d6..5a431fe 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -234,11 +234,14 @@ async function downloadFile (url, filename) { function initialise () { checkProxy() setInterval(() => { checkProxy() }, 30000) - term = new Terminal({ cols: 80, rows: 40 }) + term = new Terminal() + term.open(_('serial-monitor')) const fitAddon = new FitAddon() term.loadAddon(fitAddon) fitAddon.fit() - term.open(_('serial-monitor')) + window.onresize = () => { + fitAddon.fit() + } initBindingPhraseGen() let selected = true