mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
MSP_BUILDINFO placeholder code
This commit is contained in:
parent
16a68557c3
commit
c24b8fb482
2 changed files with 7 additions and 1 deletions
|
@ -57,7 +57,8 @@ var MSP_codes = {
|
||||||
MSP_SET_RCMAP: 65, // set rc map, numchannels to set comes from MSP_RCMAP
|
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_CONFIG: 66, // baseflight-specific settings that aren't covered elsewhere
|
||||||
MSP_SET_CONFIG: 67, // baseflight-specific settings save
|
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 = {
|
var MSP = {
|
||||||
|
@ -460,6 +461,10 @@ var MSP = {
|
||||||
case MSP_codes.MSP_SET_REBOOT:
|
case MSP_codes.MSP_SET_REBOOT:
|
||||||
console.log('Reboot request accepted');
|
console.log('Reboot request accepted');
|
||||||
break;
|
break;
|
||||||
|
case MSP_codes.MSP_BUILDINFO:
|
||||||
|
console.log('Build info received');
|
||||||
|
// TODO implement this
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.log('Unknown code detected: ' + code);
|
console.log('Unknown code detected: ' + code);
|
||||||
|
|
|
@ -154,6 +154,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// handle helper
|
// handle helper
|
||||||
|
// TODO fix this
|
||||||
$('select[name="rcmap_helper"]').change(function () {
|
$('select[name="rcmap_helper"]').change(function () {
|
||||||
$('input[name="rcmap"]').val($(this).val());
|
$('input[name="rcmap"]').val($(this).val());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue