using libgpiod for the serial hid

This commit is contained in:
Devaev Maxim
2020-09-12 20:03:51 +03:00
parent 6f75496550
commit fa5e6735ed
2 changed files with 49 additions and 26 deletions

View File

@@ -44,10 +44,6 @@ def _clear_gpio(config: Section) -> None:
with gpio.bcm():
for (name, pin) in [
*([
("hid_serial/reset", config.hid.reset_pin),
] if config.hid.type == "serial" else []),
*([
("atx_gpio/power_switch", config.atx.power_switch_pin),
("atx_gpio/reset_switch", config.atx.reset_switch_pin),