mirror of https://github.com/wb2osz/direwolf.git
Export GPIO for inputs
This commit is contained in:
parent
ebacfea517
commit
979385a78e
5
ptt.c
5
ptt.c
|
@ -556,6 +556,11 @@ void ptt_init (struct audio_s *audio_config_p)
|
||||||
export_gpio(audio_config_p->achan[ch].octrl[ot].ptt_gpio, audio_config_p->achan[ch].octrl[ot].ptt_invert, 1);
|
export_gpio(audio_config_p->achan[ch].octrl[ot].ptt_gpio, audio_config_p->achan[ch].octrl[ot].ptt_invert, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (ot = 0; ot < NUM_ICTYPES; ot++) {
|
||||||
|
if (audio_config_p->achan[ch].ictrl[ot].method == PTT_METHOD_GPIO) {
|
||||||
|
export_gpio(audio_config_p->achan[ch].ictrl[ot].gpio, audio_config_p->achan[ch].ictrl[ot].invert, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue