1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Merge pull request #362 from mikeller/ignore_msp_displayport_messages

Configure 'MSP_DISPLAYPORT' messages to be recognised, ignored.
This commit is contained in:
Michael Keller 2016-12-20 08:09:04 +13:00 committed by GitHub
commit 6c4120d0da
2 changed files with 5 additions and 0 deletions

View file

@ -104,6 +104,8 @@ var MSPCodes = {
MSP_UID: 160,
MSP_GPS_SV_INFO: 164,
MSP_DISPLAYPORT: 182,
MSP_SET_RAW_RC: 200,
MSP_SET_RAW_GPS: 201, // Not used
MSP_SET_PID: 202,

View file

@ -328,6 +328,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
SENSOR_ALIGNMENT.align_acc = data.readU8();
SENSOR_ALIGNMENT.align_mag = data.readU8();
break;
case MSPCodes.MSP_DISPLAYPORT:
console.log('Received \'MSP_DISPLAYPORT\' message, ignored.');
break;
case MSPCodes.MSP_SET_RAW_RC:
break;
case MSPCodes.MSP_SET_PID: