mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Safety constrain COLIBRI_RACE in BST protocol for gyro_lpf
This commit is contained in:
parent
1f0004d617
commit
016dac3bca
1 changed files with 1 additions and 1 deletions
|
@ -993,7 +993,7 @@ static bool bstSlaveProcessFeedbackCommand(uint8_t bstRequest)
|
|||
bstWrite8(masterConfig.profile[0].rcControlsConfig.yaw_deadband);
|
||||
break;
|
||||
case BST_FC_FILTERS:
|
||||
bstWrite16(masterConfig.gyro_lpf);
|
||||
bstWrite16(constrain(masterConfig.gyro_lpf, 0, 1)); // Extra safety to prevent OSD setting corrupt values
|
||||
break;
|
||||
default:
|
||||
// we do not know how to handle the (valid) message, indicate error BST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue