From 84592d15db11916dfaaa693fb46e7b802564344e Mon Sep 17 00:00:00 2001 From: Darsh Patel Date: Thu, 26 Apr 2018 16:47:25 +0530 Subject: [PATCH] Added Support for Toggle Mode --- code/espurna/ir.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/espurna/ir.ino b/code/espurna/ir.ino index 241c6fa2..93d75878 100644 --- a/code/espurna/ir.ino +++ b/code/espurna/ir.ino @@ -42,7 +42,9 @@ void _irProcessCode(unsigned long code) { if (button_mode == IR_BUTTON_MODE_STATE) { relayStatus(0, button_value); } - + if (button_mode == IR_BUTTON_MODE_TOGGLE) { + relayToggle(button_value); + } #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE if (button_mode == IR_BUTTON_MODE_BRIGHTER) {