Skip to content

Commit

Permalink
Revert "fix: removing of ble devices when upgrade (#498)" (#502)
Browse files Browse the repository at this point in the history
This reverts commit 8e17024.
  • Loading branch information
Noteolvides authored Sep 4, 2023
1 parent 8e17024 commit 8df0032
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/api/flash/defyFlasher/NRf52833-flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,19 +230,14 @@ const NRf52833 = {

//ERASE device
func_array.push(function (callback) {
const lastAddres = dataObjects[dataObjects.length-1].address;
const sizeHex = lastAddres - (lastAddres%1024)+1024;
write_cb(
str2ab(`E${num2hexstr(dataObjects[0].address, 8)},${num2hexstr(sizeHex, 8)}#`),
callback
);
write_cb(str2ab("E" + num2hexstr(dataObjects[0].address, 8) + "#"), callback);
});
func_array.push(callback => {
read_cb(callback);
});

var state = 1,
stateT = 50;
stateT = 50;
while (total > 0) {
let bufferSize = total < PACKET_SIZE ? total : PACKET_SIZE;

Expand Down

0 comments on commit 8df0032

Please sign in to comment.