This is odd - I'm now seeing the same behaviour. I could have sworn it
was all working perfectly before....very odd....
Anyway, with a simple command line, setting up short presses on two
buttons, I get multiple commands firing when I short-press button 23
once:
My command line: sbpd -v -f /home/tc/sbpd_commands.cfg b,23,PREV,2,0
b,13,NEXT,2,0
Sample verbose output:
Code:
--------------------
1524912292.6042 6 sbpd.c,336: Options parsing: Setting command config file
to /home/tc/sbpd_commands.cfg
.
.
1524912292.6045 6 sbpd.c,490: name=PREV, value=["button","rew"]
1524912292.6045 6 control.c,75: Adding Command PREV: Fragment ["button","rew"]
1524912292.6045 6 sbpd.c,490: name=NEXT, value=["button","fwd"]
1524912292.6046 6 control.c,75: Adding Command NEXT: Fragment ["button","fwd"]
.
.
1524912292.6049 6 GPIO.c,255: Initializing GPIO
1524912292.6145 6 control.c,203: Button defined: Pin 23, BCM Resistor: up,
Short Type: LMS, Short Fragment: ["button","rew"] , Long Type: unused, Long
Fragment: (null), Long Press Time: 3000
1524912292.6248 6 control.c,203: Button defined: Pin 13, BCM Resistor: up,
Short Type: LMS, Short Fragment: ["button","fwd"] , Long Type: unused, Long
Fragment: (null), Long Press Time: 3000
.
.
1524912295.7383 6 discovery.c,242: Found server 0B01A8C0. Same as before
1524912297.1502 6 GPIO.c,99: Long PRESS: 198907070
1524912297.1503 6 control.c,106: Button CB set for button 1
1524912297.2396 6 control.c,217: Button pressed: Pin: 13, Press Type:Long
1524912297.2668 6 GPIO.c,99: Long PRESS: 198907186
1524912297.2669 6 control.c,106: Button CB set for button 1
1524912297.2669 6 GPIO.c,104: Short PRESS: 116
1524912297.2669 6 control.c,106: Button CB set for button 0
1524912297.2670 6 GPIO.c,99: Long PRESS: 198907186
1524912297.2670 6 control.c,106: Button CB set for button 1
1524912297.2670 6 GPIO.c,99: Long PRESS: 198907187
1524912297.2670 6 control.c,106: Button CB set for button 0
1524912297.2671 6 GPIO.c,99: Long PRESS: 198907187
1524912297.2671 6 control.c,106: Button CB set for button 1
1524912297.3398 6 control.c,217: Button pressed: Pin: 23, Press Type:Long
1524912297.3399 6 control.c,217: Button pressed: Pin: 13, Press Type:Long
--------------------
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy