make sure both pid presets get defaults
@@ -400,7 +400,9 @@ profile_t profile;
void profile_set_defaults() {
memcpy(&profile, &default_profile, sizeof(profile_t));
- profile.pid.pid_rates[0] = pid_rate_presets[DEFAULT_PID_RATE_PRESET].rate;
+ for (uint8_t i = 0; i < PID_PROFILE_MAX; i++) {
+ profile.pid.pid_rates[i] = pid_rate_presets[DEFAULT_PID_RATE_PRESET].rate;
+ }
}
pid_rate_t *profile_current_pid_rates() {
