Skip to content

Commit

Permalink
(MobiFlight#197) Fix missing retrigger for Mux inputs at startup (Mob…
Browse files Browse the repository at this point in the history
  • Loading branch information
GioCC authored Oct 3, 2022
1 parent 5d1e90c commit db94768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/CommandMessenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#if MF_OUTPUT_SHIFTER_SUPPORT == 1
#include "OutputShifter.h"
#endif
#if MF_DIGIN_MUX_SUPPORT == 1
#include "DigInMux.h"
#endif

CmdMessenger cmdMessenger = CmdMessenger(Serial);
unsigned long lastCommand;
Expand Down Expand Up @@ -107,6 +110,9 @@ void OnTrigger()
#if MF_INPUT_SHIFTER_SUPPORT == 1
InputShifter::OnTrigger();
#endif
#if MF_DIGIN_MUX_SUPPORT == 1
DigInMux::OnTrigger();
#endif
}

// commandmessenger.cpp
2 changes: 1 addition & 1 deletion src/MF_DigInMux/DigInMux.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace DigInMux
void Add(uint8_t dataPin, uint8_t nRegs, char const *name = "DigInMux", bool mode = MFDigInMux::MUX_MODE_FAST);
void Clear();
void read();
// void OnTrigger();
void OnTrigger();
}

// DigInMux.h

0 comments on commit db94768

Please sign in to comment.