Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Revert "fix: removing of ble devices when upgrade" #502

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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