mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
idle_min_rpm to msp
This commit is contained in:
parent
41a59bfe10
commit
9b1f91c5ff
1 changed files with 3 additions and 1 deletions
|
@ -1799,6 +1799,7 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
|||
// Added in MSP API 1.43
|
||||
sbufWriteU8(dst, currentPidProfile->motor_output_limit);
|
||||
sbufWriteU8(dst, currentPidProfile->auto_profile_cell_count);
|
||||
sbufWriteU8(dst, currentPidProfile->idle_min_rpm);
|
||||
|
||||
break;
|
||||
case MSP_SENSOR_CONFIG:
|
||||
|
@ -2645,10 +2646,11 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
sbufReadU8(src);
|
||||
#endif
|
||||
}
|
||||
if(sbufBytesRemaining(src) >= 2) {
|
||||
if(sbufBytesRemaining(src) >= 3) {
|
||||
// Added in MSP API 1.43
|
||||
currentPidProfile->motor_output_limit = sbufReadU8(src);
|
||||
currentPidProfile->auto_profile_cell_count = sbufReadU8(src);
|
||||
currentPidProfile->idle_min_rpm = sbufReadU8(src);
|
||||
}
|
||||
pidInitConfig(currentPidProfile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue