Cosmetics
This commit is contained in:
@@ -42,7 +42,7 @@ uint16_t getMixerSchedulerPeriod()
|
||||
return mixerSchedules[INTERNAL_MODULE].period;
|
||||
}
|
||||
#endif
|
||||
#if 1 //defined(HARDWARE_EXTERNAL_MODULE)
|
||||
#if defined(HARDWARE_EXTERNAL_MODULE)
|
||||
if (mixerSchedules[EXTERNAL_MODULE].period) {
|
||||
return mixerSchedules[EXTERNAL_MODULE].period;
|
||||
}
|
||||
@@ -58,10 +58,10 @@ void mixerSchedulerInit()
|
||||
|
||||
void mixerSchedulerSetPeriod(uint8_t moduleIdx, uint16_t periodUs)
|
||||
{
|
||||
if ((periodUs > 0) && (periodUs < MIN_REFRESH_RATE)) {
|
||||
if (periodUs > 0 && periodUs < MIN_REFRESH_RATE) {
|
||||
periodUs = MIN_REFRESH_RATE;
|
||||
}
|
||||
else if ((periodUs > 0) && (periodUs > MAX_REFRESH_RATE)) {
|
||||
else if (periodUs > 0 && periodUs > MAX_REFRESH_RATE) {
|
||||
periodUs = MAX_REFRESH_RATE;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#define OPENTX_OPTIONS_H
|
||||
|
||||
static const char * const options[] = {
|
||||
"synced",
|
||||
#if defined(AUTOUPDATE)
|
||||
"autoupdate",
|
||||
#endif
|
||||
|
||||
@@ -356,11 +356,12 @@ bool setupPulsesExternalModule(uint8_t protocol)
|
||||
setupPulsesSbus();
|
||||
#if defined(PCBSKY9X)
|
||||
scheduleNextMixerCalculation(EXTERNAL_MODULE, SBUS_PERIOD);
|
||||
#endif
|
||||
#else
|
||||
// SBUS_PERIOD is not a constant! It can be set from UI
|
||||
mixerSchedulerSetPeriod(EXTERNAL_MODULE, SBUS_PERIOD);
|
||||
return true;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(DSM2)
|
||||
case PROTOCOL_CHANNELS_DSM2_LP45:
|
||||
|
||||
Reference in New Issue
Block a user