Change order of parameters of provision().

This commit is contained in:
Michael Dietz
2016-02-26 15:35:27 +01:00
parent 423fbf07a2
commit 3829145e51
3 changed files with 4 additions and 4 deletions

4
dist/dfu.js vendored
View File

@@ -162,11 +162,11 @@
return view;
}
function provision(device, arrayBuffer, imageType, crc) {
function provision(device, arrayBuffer, crc, imageType) {
return new Promise(function(resolve, reject) {
var versionChar = null;
imageType = imageType || ImageType.Application;
initPacket.crc = crc || 0xFFFF; // Not used in mbed/ older bootloader revisions.
imageType = imageType || ImageType.Application;
connect(device)
.then(function(chars) {