1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

implement build info

This commit is contained in:
cTn 2014-09-24 15:35:20 +02:00
parent c24b8fb482
commit 4719d1562d
3 changed files with 26 additions and 11 deletions

View file

@ -462,8 +462,13 @@ var MSP = {
console.log('Reboot request accepted');
break;
case MSP_codes.MSP_BUILDINFO:
console.log('Build info received');
// TODO implement this
var buff = [];
for (var i = 0; i < data.byteLength; i++) {
buff.push(data.getUint8(i));
}
CONFIG.buildInfo = String.fromCharCode.apply(null, buff);
break;
default: