Fix Sport polling bytes send without multi header and introduce sport polling header for multi (#126)

This commit is contained in:
Arne Schwabe 2017-12-16 09:14:59 +01:00 committed by pascallanger
parent 93e277bb0f
commit 64fb90960b
2 changed files with 12 additions and 7 deletions

View File

@ -239,12 +239,15 @@ struct PPM_Parameters
// Telemetry
enum MultiPacketTypes {
MULTI_TELEMETRY_STATUS = 1,
MULTI_TELEMETRY_SPORT = 2,
MULTI_TELEMETRY_HUB = 3,
MULTI_TELEMETRY_DSM = 4,
MULTI_TELEMETRY_DSMBIND = 5,
MULTI_TELEMETRY_AFHDS2A = 6,
MULTI_TELEMETRY_STATUS = 1,
MULTI_TELEMETRY_SPORT = 2,
MULTI_TELEMETRY_HUB = 3,
MULTI_TELEMETRY_DSM = 4,
MULTI_TELEMETRY_DSMBIND = 5,
MULTI_TELEMETRY_AFHDS2A = 6,
MULTI_TELEMETRY_CONFIG = 7,
MULTI_TELEMETRY_SYNC = 8,
MULTI_TELEMETRY_SPORT_POLLING = 9,
};
// Macros

View File

@ -597,7 +597,9 @@ void pollSport()
}
SportIndexPolling = pindex ;
RxIndex = 0;
Serial_write(TxData[0]);
#ifdef MULTI_TELEMETRY
multi_send_header(MULTI_TELEMETRY_SPORT_POLLING, 1);
#endif
Serial_write(TxData[1]);
}