mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Make number of rate profiles conditional using define (#14239)
* Revert reducing number of rate profiles * Add CONTROL_RATE_PROFILE_COUNT to STATUS_EX (msp) * Update src/main/target/common_pre.h Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Update src/test/unit/platform.h Co-authored-by: Petr Ledvina <ledvinap@gmail.com> --------- Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
parent
39f82e79df
commit
c2381fb98f
3 changed files with 5 additions and 2 deletions
|
@ -1128,6 +1128,7 @@ static bool mspProcessOutCommand(mspDescriptor_t srcDesc, int16_t cmdMSP, sbuf_t
|
|||
#else
|
||||
sbufWriteU16(dst, 0);
|
||||
#endif
|
||||
sbufWriteU8(dst, CONTROL_RATE_PROFILE_COUNT);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -301,7 +301,9 @@
|
|||
#define USE_HUFFMAN
|
||||
|
||||
#define PID_PROFILE_COUNT 4
|
||||
#define CONTROL_RATE_PROFILE_COUNT 4
|
||||
#ifndef CONTROL_RATE_PROFILE_COUNT
|
||||
#define CONTROL_RATE_PROFILE_COUNT 4 // or maybe 6
|
||||
#endif
|
||||
|
||||
#define USE_CLI_BATCH
|
||||
#define USE_RESOURCE_MGMT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue