Cosmetics

This commit is contained in:
Bertrand Songis
2019-12-16 14:22:23 +01:00
parent 44b2281ab5
commit 48b50167b2
2 changed files with 13 additions and 6 deletions
+3 -6
View File
@@ -1557,12 +1557,8 @@ void doMixerCalculations()
#if defined(PXX) || defined(DSM2)
static uint8_t countRangecheck = 0;
for (uint8_t i=0; i<NUM_MODULES; ++i) {
#if defined(MULTIMODULE)
if (moduleState[i].mode >= MODULE_MODE_BEEP_FIRST || getMultiModuleStatus(i).isBinding()) {
#else
if (moduleState[i].mode >= MODULE_MODE_BEEP_FIRST) {
#endif
for (uint8_t i = 0; i < NUM_MODULES; ++i) {
if (isModuleBeeping(i)) {
if (++countRangecheck >= 250) {
countRangecheck = 0;
AUDIO_PLAY(AU_SPECIAL_SOUND_CHEEP);
@@ -1573,6 +1569,7 @@ void doMixerCalculations()
checkTrims();
}
DEBUG_TIMER_STOP(debugTimerMixes10ms);
s_mixer_first_run_done = true;
+10
View File
@@ -213,6 +213,16 @@ PACK(struct ModuleState {
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 {
T pulses[20];
T * ptr;