MSP_BUILDINFO placeholder code

10.3.x-maintenance
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);

View File

@ -154,6 +154,7 @@ TABS.receiver.initialize = function (callback) {
});
// handle helper
// TODO fix this
$('select[name="rcmap_helper"]').change(function () {
$('input[name="rcmap"]').val($(this).val());
});