show flashing progress bar
This commit is contained in:
@@ -175,18 +175,16 @@ class Nrf52DfuFlasher {
|
||||
console.log("Sending DFU init packet");
|
||||
await this.sendInitPacket(init_packet);
|
||||
|
||||
console.log("Sending firmware file")
|
||||
console.log("Sending firmware");
|
||||
await this.sendFirmware(firmware, progressCallback);
|
||||
|
||||
// close port
|
||||
console.log("Closing Port");
|
||||
console.log("Closing serial port");
|
||||
await this.serialPort.close();
|
||||
|
||||
// todo
|
||||
// sleep(self.dfu_transport.get_activate_wait_time())
|
||||
|
||||
console.log("Done");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -399,11 +397,6 @@ class Nrf52DfuFlasher {
|
||||
...this.int32ToBytes(this.DFU_STOP_DATA_PACKET),
|
||||
]));
|
||||
|
||||
// send final progress
|
||||
if(progressCallback){
|
||||
progressCallback(100);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user