From 01770e48e10081a8f7d3f18123ba2c84a30fe8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 27 Dec 2017 21:32:25 +0100 Subject: [PATCH] Fix casting issue in buttonStore (#327) --- code/espurna/button.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/button.ino b/code/espurna/button.ino index 758b8cf2..27bef53e 100644 --- a/code/espurna/button.ino +++ b/code/espurna/button.ino @@ -55,7 +55,7 @@ unsigned char buttonAction(unsigned char id, unsigned char event) { return BUTTON_MODE_NONE; } -unsigned long buttonStore(unsigned char pressed, unsigned char click, unsigned char dblclick, unsigned char lngclick, unsigned char lnglngclick) { +unsigned long buttonStore(unsigned long pressed, unsigned long click, unsigned long dblclick, unsigned long lngclick, unsigned long lnglngclick) { unsigned int value; value = pressed; value += click << 4;