1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

Fix endianness of board version read

This commit is contained in:
Nicholas Sherlock 2015-02-23 22:47:47 +13:00
parent 3c2bb6225d
commit 66e767881e

View file

@ -545,7 +545,7 @@ var MSP = {
identifier += String.fromCharCode(data.getUint8(offset));
}
CONFIG.boardIdentifier = identifier;
CONFIG.boardVersion = data.getUint16(offset);
CONFIG.boardVersion = data.getUint16(offset, 1);
offset+=2;
break;