Display baudrate choice only when needed on colorlcd (#7311)
This commit is contained in:
@@ -81,7 +81,6 @@ enum CrossfireSensorIndexes {
|
||||
void processCrossfireTelemetryData(uint8_t data);
|
||||
void crossfireSetDefault(int index, uint8_t id, uint8_t subId);
|
||||
|
||||
#if SPORT_MAX_BAUDRATE < 400000
|
||||
const uint32_t CROSSFIRE_BAUDRATES[] = {
|
||||
400000,
|
||||
115200,
|
||||
@@ -90,6 +89,7 @@ const uint8_t CROSSFIRE_PERIODS[] = {
|
||||
4,
|
||||
16,
|
||||
};
|
||||
#if SPORT_MAX_BAUDRATE < 400000
|
||||
#define CROSSFIRE_BAUDRATE CROSSFIRE_BAUDRATES[g_eeGeneral.telemetryBaudrate]
|
||||
#define CROSSFIRE_PERIOD CROSSFIRE_PERIODS[g_eeGeneral.telemetryBaudrate]
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user