Cosmetics
This commit is contained in:
@@ -1557,12 +1557,8 @@ void doMixerCalculations()
|
|||||||
|
|
||||||
#if defined(PXX) || defined(DSM2)
|
#if defined(PXX) || defined(DSM2)
|
||||||
static uint8_t countRangecheck = 0;
|
static uint8_t countRangecheck = 0;
|
||||||
for (uint8_t i=0; i<NUM_MODULES; ++i) {
|
for (uint8_t i = 0; i < NUM_MODULES; ++i) {
|
||||||
#if defined(MULTIMODULE)
|
if (isModuleBeeping(i)) {
|
||||||
if (moduleState[i].mode >= MODULE_MODE_BEEP_FIRST || getMultiModuleStatus(i).isBinding()) {
|
|
||||||
#else
|
|
||||||
if (moduleState[i].mode >= MODULE_MODE_BEEP_FIRST) {
|
|
||||||
#endif
|
|
||||||
if (++countRangecheck >= 250) {
|
if (++countRangecheck >= 250) {
|
||||||
countRangecheck = 0;
|
countRangecheck = 0;
|
||||||
AUDIO_PLAY(AU_SPECIAL_SOUND_CHEEP);
|
AUDIO_PLAY(AU_SPECIAL_SOUND_CHEEP);
|
||||||
@@ -1573,6 +1569,7 @@ void doMixerCalculations()
|
|||||||
|
|
||||||
checkTrims();
|
checkTrims();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_TIMER_STOP(debugTimerMixes10ms);
|
DEBUG_TIMER_STOP(debugTimerMixes10ms);
|
||||||
|
|
||||||
s_mixer_first_run_done = true;
|
s_mixer_first_run_done = true;
|
||||||
|
|||||||
@@ -213,6 +213,16 @@ PACK(struct ModuleState {
|
|||||||
|
|
||||||
extern ModuleState moduleState[NUM_MODULES];
|
extern ModuleState moduleState[NUM_MODULES];
|
||||||
|
|
||||||
|
inline bool isModuleBeeping(uint8_t moduleIndex)
|
||||||
|
{
|
||||||
|
#if defined(MULTIMODULE)
|
||||||
|
if (getMultiModuleStatus(moduleIndex).isBinding())
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return moduleState[moduleIndex].mode >= MODULE_MODE_BEEP_FIRST;
|
||||||
|
}
|
||||||
|
|
||||||
template<class T> struct PpmPulsesData {
|
template<class T> struct PpmPulsesData {
|
||||||
T pulses[20];
|
T pulses[20];
|
||||||
T * ptr;
|
T * ptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user