Support upto 256 click events on a block. Fixes #32
This commit is contained in:
3
main.c
3
main.c
@@ -201,7 +201,8 @@ void signalHandler() {
|
|||||||
|
|
||||||
for (int j = 0; j < LEN(blocks); j++) {
|
for (int j = 0; j < LEN(blocks); j++) {
|
||||||
if (blocks[j].signal == signal - SIGRTMIN) {
|
if (blocks[j].signal == signal - SIGRTMIN) {
|
||||||
char button[] = {'0' + info.ssi_int & 0xff, 0};
|
char button[4]; // value can't be more than 255;
|
||||||
|
sprintf(button, "%d", info.ssi_int & 0xff);
|
||||||
execBlock(j, button);
|
execBlock(j, button);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user