Support upto 256 click events on a block. Fixes #32

This commit is contained in:
Utkarsh Verma 2022-09-03 09:15:45 +02:00
parent 647080cbed
commit 6a97f4d0c5
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC

3
main.c
View File

@ -201,7 +201,8 @@ void signalHandler() {
for (int j = 0; j < LEN(blocks); j++) {
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);
break;
}