Skip to content

Commit

Permalink
minor fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 committed Sep 10, 2023
1 parent e8215e4 commit 07968f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/espflasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 5 additions & 2 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07968f6

Please sign in to comment.