From 0653f9130d00902849aeb496d05058bf64da086c Mon Sep 17 00:00:00 2001 From: eiryu Date: Thu, 7 Sep 2023 15:30:51 +0900 Subject: [PATCH] Fixed to not access the cloud when receiving IR. --- firmware/src/IRKit/IRKit.ino | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/src/IRKit/IRKit.ino b/firmware/src/IRKit/IRKit.ino index 2351b59..96611bd 100644 --- a/firmware/src/IRKit/IRKit.ino +++ b/firmware/src/IRKit/IRKit.ino @@ -234,6 +234,15 @@ void on_ir_receive() { IRLOG_PRINTLN("!E31"); return; } + if (!config::useCloudControl) { + if (config::ledFeedback <= config::LED_QUIET) { + FullColorLed::LightMode lightMode = (config::ledFeedback == config::LED_VERBOSE)? FullColorLed::BLINK_THEN_ON : FullColorLed::BLINK_THEN_OFF; + color.setLedColor( 0, 0, 1, lightMode, 1 ); // received: blue blink for 1sec + } else { + color.off(); + } + return; + } int8_t cid = irkit_httpclient_post_messages(); if (cid >= 0) { if (config::ledFeedback <= config::LED_QUIET) {