1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

remove const from reset_conf( since it allready is defined in the marko

This commit is contained in:
Steffen Windoffer 2017-12-21 20:09:38 +01:00
parent 6ed62b5761
commit c549b91b5e
3 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ PG_REGISTER_ARRAY_WITH_RESET_FN(controlRateConfig_t, CONTROL_RATE_PROFILE_COUNT,
void pgResetFn_controlRateProfiles(controlRateConfig_t *controlRateConfig) void pgResetFn_controlRateProfiles(controlRateConfig_t *controlRateConfig)
{ {
for (int i = 0; i < CONTROL_RATE_PROFILE_COUNT; i++) { for (int i = 0; i < CONTROL_RATE_PROFILE_COUNT; i++) {
RESET_CONFIG(const controlRateConfig_t, &controlRateConfig[i], RESET_CONFIG(controlRateConfig_t, &controlRateConfig[i],
.rcRate8 = 100, .rcRate8 = 100,
.rcYawRate8 = 100, .rcYawRate8 = 100,
.rcExpo8 = 0, .rcExpo8 = 0,

View file

@ -77,7 +77,7 @@ PG_REGISTER_ARRAY_WITH_RESET_FN(pidProfile_t, MAX_PROFILE_COUNT, pidProfiles, PG
void resetPidProfile(pidProfile_t *pidProfile) void resetPidProfile(pidProfile_t *pidProfile)
{ {
RESET_CONFIG(const pidProfile_t, pidProfile, RESET_CONFIG(pidProfile_t, pidProfile,
.pid = { .pid = {
[PID_ROLL] = { 40, 40, 30 }, [PID_ROLL] = { 40, 40, 30 },
[PID_PITCH] = { 58, 50, 35 }, [PID_PITCH] = { 58, 50, 35 },

View file

@ -79,7 +79,7 @@ PG_REGISTER_ARRAY_WITH_RESET_FN(servoParam_t, MAX_SUPPORTED_SERVOS, servoParams,
void pgResetFn_servoParams(servoParam_t *instance) void pgResetFn_servoParams(servoParam_t *instance)
{ {
for (int i = 0; i < MAX_SUPPORTED_SERVOS; i++) { for (int i = 0; i < MAX_SUPPORTED_SERVOS; i++) {
RESET_CONFIG(const servoParam_t, &instance[i], RESET_CONFIG(servoParam_t, &instance[i],
.min = DEFAULT_SERVO_MIN, .min = DEFAULT_SERVO_MIN,
.max = DEFAULT_SERVO_MAX, .max = DEFAULT_SERVO_MAX,
.middle = DEFAULT_SERVO_MIDDLE, .middle = DEFAULT_SERVO_MIDDLE,