mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Merge pull request #782 from mikeller/add_num_profiles_to_msp
Added number of profiles supported to MSP_STATUS_EX.
This commit is contained in:
commit
474fb0aaa3
1 changed files with 2 additions and 1 deletions
|
@ -672,7 +672,7 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
break;
|
||||
|
||||
case MSP_STATUS_EX:
|
||||
headSerialReply(13);
|
||||
headSerialReply(14);
|
||||
serialize16(cycleTime);
|
||||
#ifdef USE_I2C
|
||||
serialize16(i2cGetErrorCounter());
|
||||
|
@ -683,6 +683,7 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
serialize32(packFlightModeFlags());
|
||||
serialize8(masterConfig.current_profile_index);
|
||||
serialize16(constrain(averageSystemLoadPercent, 0, 100));
|
||||
serialize8(MAX_PROFILE_COUNT);
|
||||
break;
|
||||
|
||||
case MSP_NAME:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue