Use the CRC we generate for the image in the init packet.

This commit is contained in:
Michael Dietz
2016-02-26 11:17:03 +01:00
parent 03450d44b4
commit c551b074f3
4 changed files with 11 additions and 4 deletions

3
dist/dfu.js vendored
View File

@@ -162,10 +162,11 @@
return view;
}
function provision(device, arrayBuffer, imageType) {
function provision(device, arrayBuffer, imageType, crc) {
return new Promise(function(resolve, reject) {
var versionChar = null;
imageType = imageType || ImageType.Application;
initPacket.crc = crc;
connect(device)
.then(function(chars) {