diff --git a/src/main/target/DALRCF722DUAL/config.c b/src/main/target/DALRCF722DUAL/config.c new file mode 100644 index 0000000000..f07d7206a9 --- /dev/null +++ b/src/main/target/DALRCF722DUAL/config.c @@ -0,0 +1,39 @@ +/* + * This file is part of Cleanflight and Betaflight. + * + * Cleanflight and Betaflight are free software. You can redistribute + * this software and/or modify this software under the terms of the + * GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * Cleanflight and Betaflight are distributed in the hope that they + * will be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software. + * + * If not, see . + */ + +#include + +#include "platform.h" + + +#ifdef TARGET_VALIDATECONFIG + +#include "fc/config.h" + +#include "sensors/gyro.h" + +void targetValidateConfiguration(void) +{ + if (gyroConfig()->gyro_use_32khz && gyroConfig()->gyroMovementCalibrationThreshold < 148) { + gyroConfigMutable()->gyroMovementCalibrationThreshold = 148; + } +} + +#endif diff --git a/src/main/target/DALRCF722DUAL/target.h b/src/main/target/DALRCF722DUAL/target.h index a92e26610c..da74cc38fc 100644 --- a/src/main/target/DALRCF722DUAL/target.h +++ b/src/main/target/DALRCF722DUAL/target.h @@ -19,6 +19,7 @@ */ #pragma once +#define TARGET_VALIDATECONFIG #define TARGET_BOARD_IDENTIFIER "DLF7" #define USBD_PRODUCT_STRING "DALRCF722DUAL"