Skip to content

Commit

Permalink
enable 3.75M and 5.25M baudrates
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Jan 22, 2025
1 parent f0fcd8e commit b7040ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/128x64/radio_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void menuRadioHardware(event_t event)

#if defined(CROSSFIRE)
case ITEM_RADIO_HARDWARE_SERIAL_BAUDRATE:
g_eeGeneral.telemetryBaudrate = editChoice(HW_SETTINGS_COLUMN2, y, STR_MAXBAUDRATE, "\004400k115k921k1.8M" /* 3.7M5.2M */, g_eeGeneral.telemetryBaudrate, 0, DIM(CROSSFIRE_BAUDRATES) - 1, attr, event);
g_eeGeneral.telemetryBaudrate = editChoice(HW_SETTINGS_COLUMN2, y, STR_MAXBAUDRATE, "\005400k 115k 921k 1.87M3.75M5.25M", g_eeGeneral.telemetryBaudrate, 0, DIM(CROSSFIRE_BAUDRATES) - 1, attr, event);
if (attr) {
storageDirty(EE_GENERAL);
if (checkIncDec_Ret && IS_EXTERNAL_MODULE_ON()) {
Expand Down
8 changes: 4 additions & 4 deletions radio/src/telemetry/crossfire.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ const uint32_t CROSSFIRE_BAUDRATES[] = {
115200,
921600,
1870000,
// 3750000,
// 5250000,
3750000,
5250000,
};
const uint8_t CROSSFIRE_PERIODS[] = {
4,
16,
2,
2,
// 2,
// 2,
2,
2,
};

#define CROSSFIRE_BAUDRATE CROSSFIRE_BAUDRATES[g_eeGeneral.telemetryBaudrate]
Expand Down

0 comments on commit b7040ce

Please sign in to comment.