Safety constrain COLIBRI_RACE in BST protocol for gyro_lpf

This commit is contained in:
borisbstyle 2016-01-13 23:39:04 +01:00
parent 1f0004d617
commit 016dac3bca
1 changed files with 1 additions and 1 deletions

View File

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