This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/haptic/linux/SDL_syshaptic.c b/src/haptic/linux/SDL_syshaptic.c | |
index a9be7e0d3..a50fce6b1 100644 | |
--- a/src/haptic/linux/SDL_syshaptic.c | |
+++ b/src/haptic/linux/SDL_syshaptic.c | |
@@ -766,6 +766,8 @@ SDL_SYS_ToFFEffect(struct ff_effect *dest, SDL_HapticEffect * src) | |
/* Replay */ | |
dest->replay.length = (constant->length == SDL_HAPTIC_INFINITY) ? | |
0 : CLAMP(constant->length); | |
+ dest->replay.length = (constant->length == -1) ? | |
+ USHRT_MAX : constant->length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID Spec Doc | |
https://www.usb.org/sites/default/files/pid1_01_0.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
METHOD=$1 | |
PAYLOAD=$2 | |
HTTPCONF=$3 | |
URL=$4 | |
echo -n "You specified "; echo -n $#; echo " parameters." | |
# you specified 3 parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Hello" >> log.txt | |
curl -v -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"/home/xbian/Videos/TV/"}}' http://zorro.local:8080/jsonrpc | |
sleep 10 | |
curl -v -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"/home/xbian/Videos/Movies/"}}' http://zorro.local:8080/jsonrpc |