Skip to content

Commit

Permalink
Fixes for STM32 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 committed Oct 28, 2023
1 parent 42b8715 commit 6753982
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class Configure {
static download = async (deviceType, radioType, config, firmwareUrl, options) => {
if (config.platform === 'stm32') {
const entry = await this.#fetch_file(firmwareUrl, 0, (bin) => this.#configureSTM32(bin, deviceType, radioType, options))
return [entry.data]
return [entry]
} else {
const list = []
const version = document.getElementById('version').value
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ deviceNext.onclick = (e) => {
_('etx').disabled = true
_('wifi').disabled = true
_('stlink').disabled = true
selectedModel.upload_methods.forEach((k) => { _(k).disabled = false })
selectedModel.upload_methods.forEach((k) => { if (_(k)) _(k).disabled = false })

setDisplay('#step-device', false)
setClass('#step-2', 'active')
Expand Down
2 changes: 1 addition & 1 deletion src/js/xmodem.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class XmodemFlasher {
} else {
this.log('\nWe were already in bootloader\n')
}
return this.xmodem.send(binary[0])
return this.xmodem.send(binary[0].data)
}

checkStatus = (response) => {
Expand Down

0 comments on commit 6753982

Please sign in to comment.