Skip to content

Commit 07082de

Browse files
ot0tothaslinghuis
andauthored
Update mag_declination range in settings.c (betaflight#14206)
* Update mag_declination range in settings.c * Update src/main/cli/settings.c Co-authored-by: Mark Haslinghuis <[email protected]> --------- Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent e760bfa commit 07082de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cli/settings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ const clivalue_t valueTable[] = {
10831083
{ PARAM_NAME_IMU_SMALL_ANGLE, VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 180 }, PG_IMU_CONFIG, offsetof(imuConfig_t, small_angle) },
10841084
{ PARAM_NAME_IMU_PROCESS_DENOM, VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 1, 4 }, PG_IMU_CONFIG, offsetof(imuConfig_t, imu_process_denom) },
10851085
#ifdef USE_MAG
1086-
{ PARAM_NAME_IMU_MAG_DECLINATION, VAR_INT16 | MASTER_VALUE, .config.minmaxUnsigned = { -300, 300 }, PG_IMU_CONFIG, offsetof(imuConfig_t, mag_declination) },
1086+
{ PARAM_NAME_IMU_MAG_DECLINATION, VAR_INT16 | MASTER_VALUE, .config.minmax = { -300, 300 }, PG_IMU_CONFIG, offsetof(imuConfig_t, mag_declination) },
10871087
#endif
10881088

10891089
// PG_ARMING_CONFIG

0 commit comments

Comments
 (0)