1
0
Fork 0
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:
borisbstyle 2016-07-18 12:18:19 +02:00 committed by GitHub
commit 474fb0aaa3

View file

@ -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: