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:
parent
c24b8fb482
commit
4719d1562d
3 changed files with 26 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue