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