From 7efaaa8a8054cb4cb3c421ca92a0d98f39922b32 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sat, 7 Sep 2019 12:39:48 +0300 Subject: [PATCH] ir: use proper methods --- code/espurna/ir.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/espurna/ir.ino b/code/espurna/ir.ino index cf86d203..780dbe7a 100644 --- a/code/espurna/ir.ino +++ b/code/espurna/ir.ino @@ -303,7 +303,8 @@ void _irProcess(unsigned char type, unsigned long code) { } if (button_mode == IR_BUTTON_MODE_RGB) { - lightColor(button_value); + lightColor((button_value >> 8) & 0xffffff); + lightBrightness(button_value & 0xff); } /*