Skip to content

Commit c352a69

Browse files
authored
Merge pull request #7977 from iNavFlight/dzikuvx-change-fallback-esc-protocol
Change fallback ESC protocol to Multishot when DSHOT is not available
2 parents ce6465b + c40cfdd commit c352a69

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/main/fc/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void validateAndFixConfig(void)
239239
// Limitations of different protocols
240240
#if !defined(USE_DSHOT)
241241
if (motorConfig()->motorPwmProtocol > PWM_TYPE_BRUSHED) {
242-
motorConfigMutable()->motorPwmProtocol = PWM_TYPE_STANDARD;
242+
motorConfigMutable()->motorPwmProtocol = PWM_TYPE_MULTISHOT;
243243
}
244244
#endif
245245

src/main/flight/mixer.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ PG_RESET_TEMPLATE(mixerConfig_t, mixerConfig,
9393
.outputMode = SETTING_OUTPUT_MODE_DEFAULT,
9494
);
9595

96-
#ifdef BRUSHED_MOTORS
97-
#define DEFAULT_PWM_PROTOCOL PWM_TYPE_BRUSHED
98-
#define DEFAULT_PWM_RATE 16000
99-
#else
100-
#define DEFAULT_PWM_PROTOCOL PWM_TYPE_ONESHOT125
101-
#define DEFAULT_PWM_RATE 400
102-
#endif
103-
104-
#define DEFAULT_MAX_THROTTLE 1850
105-
10696
PG_REGISTER_WITH_RESET_TEMPLATE(motorConfig_t, motorConfig, PG_MOTOR_CONFIG, 9);
10797

10898
PG_RESET_TEMPLATE(motorConfig_t, motorConfig,

0 commit comments

Comments
 (0)