Skip to content

Commit befa4c8

Browse files
committed
Execute gpio-set internally
1 parent 581aa97 commit befa4c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ Requires=
77
[Service]
88
# Put the micro in a ready state.
99
ExecStartPre=-/usr/bin/gpioset -c /dev/gpiochip1 -t0 37=0
10-
ExecStart=/usr/bin/arduino-router --unix-port /var/run/arduino-router.sock --serial-port /dev/ttyHS1 --serial-baudrate 115200
11-
# End the boot animation after the router is started.
12-
ExecStartPost=/usr/bin/gpioset -c /dev/gpiochip1 -t0 70=1
10+
# Launch router and end the boot animation after the router is started (--after-start).
11+
ExecStart=/usr/bin/arduino-router --unix-port /var/run/arduino-router.sock --serial-port /dev/ttyHS1 --serial-baudrate 115200 --after-start "/usr/bin/gpioset -c /dev/gpiochip1 -t0 70=1"
1312
StandardOutput=journal
1413
StandardError=journal
1514
Restart=always

0 commit comments

Comments
 (0)