IRC Ghost 12 bit support
This commit is contained in:
committed by
Raphael Coeffic
parent
a177264759
commit
77386e6391
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user