feat(TX16S): User options for AUX1/AUX2 serial port power (ON/OFF)

User controllable serial port power for TX16S
This commit is contained in:
Peter Feerick
2022-04-24 11:53:31 +10:00
committed by GitHub
45 changed files with 206 additions and 88 deletions
@@ -219,6 +219,17 @@ int main()
pwrInit();
keysInit();
#if defined(SWSERIALPOWER)
#if defined(AUX_SERIAL)
void set_aux_pwr(uint8_t on);
set_aux_pwr(0);
#endif
#if defined(AUX2_SERIAL)
void set_aux2_pwr(uint8_t on);
set_aux2_pwr(0);
#endif
#endif
// wait a bit for the inputs to stabilize...
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
for (uint32_t i = 0; i < 150000; i++) {