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

MSP_BUILDINFO placeholder code

This commit is contained in:
cTn 2014-09-24 15:19:22 +02:00
parent 16a68557c3
commit c24b8fb482
2 changed files with 7 additions and 1 deletions

View file

@ -57,7 +57,8 @@ var MSP_codes = {
MSP_SET_RCMAP: 65, // set rc map, numchannels to set comes from MSP_RCMAP
MSP_CONFIG: 66, // baseflight-specific settings that aren't covered elsewhere
MSP_SET_CONFIG: 67, // baseflight-specific settings save
MSP_SET_REBOOT: 68 // reboot settings
MSP_SET_REBOOT: 68, // reboot settings
MSP_BUILDINFO: 69 // build date as well as some space for future expansion
};
var MSP = {
@ -460,6 +461,10 @@ var MSP = {
case MSP_codes.MSP_SET_REBOOT:
console.log('Reboot request accepted');
break;
case MSP_codes.MSP_BUILDINFO:
console.log('Build info received');
// TODO implement this
break;
default:
console.log('Unknown code detected: ' + code);