Skip to content

Commit

Permalink
add sleep in ds4drv.service
Browse files Browse the repository at this point in the history
  • Loading branch information
yannis-mlgrn committed Apr 18, 2022
1 parent 462f507 commit 6a8052d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/roles/ps4-controller/templates/ds4drv.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ After=bluetooth.service

[Service]
EnvironmentFile=/etc/donkeycar/ds4drv.env
ExecStart=sudo /home/pi/venv/bin/ds4drv --controller-limit 1 --led ${controller_color} --config /etc/donkeycar/ds4drv.conf --bindings donkeycar
ExecStartPre=/bin/sleep 5
ExecStart=/home/pi/env/bin/ds4drv --controller-limit 1 --led ${controller_color} --config /etc/donkeycar/ds4drv.conf --bindings donkeycar
Restart=on-abort

[Install]
Expand Down

0 comments on commit 6a8052d

Please sign in to comment.