IRC Ghost 12 bit support

This commit is contained in:
Štěpán Dalecký
2022-01-22 13:43:30 +01:00
committed by Raphael Coeffic
parent a177264759
commit 77386e6391
8 changed files with 94 additions and 52 deletions
+8
View File
@@ -88,6 +88,14 @@ const GhostSensor ghostSensors[] = {
{0x00, NULL, UNIT_RAW, 0},
};
uint8_t getGhostModuleAddr() {
#if SPORT_MAX_BAUDRATE < 400000
return g_eeGeneral.telemetryBaudrate == GHST_TELEMETRY_RATE_400K ? GHST_ADDR_MODULE_SYM : GHST_ADDR_MODULE_ASYM;
#else
return GHST_ADDR_MODULE_SYM;
#endif
}
const GhostSensor *getGhostSensor(uint8_t id)
{
for (const GhostSensor * sensor = ghostSensors; sensor->id; sensor++) {