CRC is not required for mbed. Really shouldn't be seen by user.

This commit is contained in:
Michael Dietz
2016-02-26 11:42:42 +01:00
parent c551b074f3
commit 423fbf07a2
2 changed files with 2 additions and 1 deletions

1
dist/crc16.js vendored
View File

@@ -45,6 +45,7 @@
/** /**
* Copied from Nordic's command line tool nrf.exe. * Copied from Nordic's command line tool nrf.exe.
* https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/nordicsemi/dfu/crc16.py * https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/nordicsemi/dfu/crc16.py
* CRC-CCITT (0xFFFF).
*/ */
return function (binaryData) { return function (binaryData) {
var crc = 0xFFFF; var crc = 0xFFFF;

2
dist/dfu.js vendored
View File

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