When the GDO-BlaQ is restarted by software through a watchdog timeout or abort() or assert()the reset process can leave the UART TX in a HIGH state, which causes the output to go LOW, triggering the garage door to open/close unexpectedly. This adds a wrapper around the panic handler which switches the UART TX pin to a digital input with pulldown enabled which will cause the output to remain HIGH and avoid triggering the door.
When the GDO-BlaQ is restarted by software through a watchdog timeout or
abort()
orassert()
the reset process can leave the UART TX in a HIGH state, which causes the output to go LOW, triggering the garage door to open/close unexpectedly. This adds a wrapper around the panic handler which switches the UART TX pin to a digital input with pulldown enabled which will cause the output to remain HIGH and avoid triggering the door.