Skip to content

Commit 5456447

Browse files
authored
fix: enable micro before router
1 parent 0146731 commit 5456447

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

debian/router/etc/systemd/system/arduino-router.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Wants=network-online.target
55
Requires=
66

77
[Service]
8+
# We want to make sure the micro is enable and ready before starting the router
9+
ExecStartPre=-/usr/bin/gpioset -c /dev/gpiochip1 -t0 71=0
10+
ExecStartPre=-/usr/bin/gpioset -c /dev/gpiochip1 -t0 40=0
11+
ExecStartPre=-/usr/bin/gpioset -c /dev/gpiochip1 -t0 40=1
812
ExecStart=/usr/bin/router --listen-port :8900 --unix-port /var/run/arduino-router.socket --serial-port /dev/ttyHS1
913
StandardOutput=journal
1014
StandardError=journal

0 commit comments

Comments
 (0)