mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Missing alt_alarm in msp and cli
This commit is contained in:
parent
46ef430d44
commit
cd5c2b674f
2 changed files with 2 additions and 0 deletions
|
@ -920,6 +920,7 @@ const clivalue_t valueTable[] = {
|
|||
{ "osd_rssi_alarm", VAR_UINT8 | MASTER_VALUE, &masterConfig.osdProfile.rssi_alarm, .config.minmax = { 0, 100 } },
|
||||
{ "osd_cap_alarm", VAR_UINT16 | MASTER_VALUE, &masterConfig.osdProfile.cap_alarm, .config.minmax = { 0, 20000 } },
|
||||
{ "osd_time_alarm", VAR_UINT16 | MASTER_VALUE, &masterConfig.osdProfile.time_alarm, .config.minmax = { 0, 60 } },
|
||||
{ "osd_alt_alarm", VAR_UINT16 | MASTER_VALUE, &masterConfig.osdProfile.alt_alarm, .config.minmax = { 0, 10000 } },
|
||||
|
||||
{ "osd_main_voltage_pos", VAR_UINT16 | MASTER_VALUE, &masterConfig.osdProfile.item_pos[OSD_MAIN_BATT_VOLTAGE], .config.minmax = { 0, 65536 } },
|
||||
{ "osd_rssi_pos", VAR_UINT16 | MASTER_VALUE, &masterConfig.osdProfile.item_pos[OSD_RSSI_VALUE], .config.minmax = { 0, 65536 } },
|
||||
|
|
|
@ -1205,6 +1205,7 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
serialize8(masterConfig.osdProfile.rssi_alarm);
|
||||
serialize16(masterConfig.osdProfile.cap_alarm);
|
||||
serialize16(masterConfig.osdProfile.time_alarm);
|
||||
serialize16(masterConfig.osdProfile.alt_alarm);
|
||||
|
||||
for (i = 0; i < OSD_MAX_ITEMS; i++) {
|
||||
serialize16(masterConfig.osdProfile.item_pos[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue