dectmngr: Workaround for BCM hs_uart driver

BCM "high speed" UART driver does not put the device-tree node of the
device into sysfs
This commit is contained in:
Andreas Gnau 2023-03-19 15:38:30 +01:00
parent aaae999e3e
commit 7847ed2c93

View file

@ -59,8 +59,8 @@ start_service() {
local dcx81_uart_device
if ! dcx81_uart_device="$(get_dcx81_device)"; then
logger -t "$PROG" -p daemon.error "Could not determine DCX81 UART device. Cannot start $PROG"
return 1
logger -t "$PROG" -p daemon.warning "Could not determine DCX81 UART device. Falling back to default ttyH0."
dcx81_uart_device=/dev/ttyH0
fi
[ -n "$DECT_GPIO" ] && echo 1 > /sys/class/gpio/gpio${DECT_GPIO}/value