mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
Cosmetics
This commit is contained in:
parent
84387e7e0f
commit
cff8109d5a
3 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue