projects
/
usb-relay-hid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Linux makefile - make the lib by default, copy tests
[usb-relay-hid.git]
/
Test
/
relay1-pulse.sh
diff --git
a/Test/relay1-pulse.sh
b/Test/relay1-pulse.sh
index 8a42b52d14b55c3bbe637810b5e93a842f3f3f6a..54bb0d543a9c389f79c397051b41e889db5c1aab 100644
(file)
--- a/
Test/relay1-pulse.sh
+++ b/
Test/relay1-pulse.sh
@@
-1,11
+1,11
@@
#!/bin/sh
# Pulse USB relay channel for (sec) seconds
# If access to the USB device requires root, run with sudo
#!/bin/sh
# Pulse USB relay channel for (sec) seconds
# If access to the USB device requires root, run with sudo
-sec=${1:1}
+sec=${1:
-
1}
chan=1
SUDO=sudo
dir="./"
chan=1
SUDO=sudo
dir="./"
-$SUDO ${dir}hidusbrelay-cmd ON $chan
+$SUDO ${dir}hidusb
-
relay-cmd ON $chan
sleep $sec
sleep $sec
-$SUDO ${dir}hidusbrelay-cmd OFF $chan
+$SUDO ${dir}hidusb
-
relay-cmd OFF $chan