Merge pull request #362 from mikeller/ignore_msp_displayport_messages

Configure 'MSP_DISPLAYPORT' messages to be recognised, ignored.
10.3.x-maintenance
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: