Created
October 2, 2024 21:13
-
-
Save Girgitt/b915cb510815cce045f8a20c61b2a07b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zbig@tx120-1:~/repos/private/openHASP$ git diff | |
diff --git a/src/hasp/hasp.cpp b/src/hasp/hasp.cpp | |
index 4e0f4eef..d30b3709 100644 | |
--- a/src/hasp/hasp.cpp | |
+++ b/src/hasp/hasp.cpp | |
@@ -134,8 +134,8 @@ HASP_ATTRIBUTE_FAST_MEM void hasp_update_sleep_state() | |
if(hasp_sleep_state != HASP_SLEEP_OFF) { | |
gui_hide_pointer(false); | |
hasp_sleep_state = HASP_SLEEP_OFF; | |
- dispatch_idle_state(HASP_SLEEP_OFF); | |
- dispatch_run_script(NULL, "L:/idle_off.cmd", TAG_HASP); | |
+ //dispatch_idle_state(HASP_SLEEP_OFF); | |
+ //dispatch_run_script(NULL, "L:/idle_off.cmd", TAG_HASP); | |
} | |
} | |
} | |
diff --git a/src/hasp/hasp_dispatch.cpp b/src/hasp/hasp_dispatch.cpp | |
index 33cffc77..28afce60 100644 | |
--- a/src/hasp/hasp_dispatch.cpp | |
+++ b/src/hasp/hasp_dispatch.cpp | |
@@ -1189,7 +1189,7 @@ void dispatch_backlight(const char*, const char* payload, uint8_t source) | |
// Return the current state | |
char topic[10]; | |
memcpy_P(topic, PSTR("backlight"), 10); | |
- dispatch_state_brightness(topic, (hasp_event_t)haspDevice.get_backlight_power(), haspDevice.get_backlight_level()); | |
+ //dispatch_state_brightness(topic, (hasp_event_t)haspDevice.get_backlight_power(), haspDevice.get_backlight_level()); | |
} | |
void dispatch_web_update(const char*, const char* espOtaUrl, uint8_t source) | |
diff --git a/src/main.cpp b/src/main.cpp | |
index c68c2bf4..8e1bdce8 100644 | |
--- a/src/main.cpp | |
+++ b/src/main.cpp | |
@@ -204,7 +204,7 @@ IRAM_ATTR void loop() | |
#endif | |
/* Timer Loop */ | |
- if(millis() - mainLastLoopTime >= 1000) { | |
+ if(millis() - mainLastLoopTime >= 100) { | |
mainLastLoopTime = millis(); | |
/* Runs Every Second */ | |
diff --git a/src/mqtt/hasp_mqtt_ha.cpp b/src/mqtt/hasp_mqtt_ha.cpp | |
index cc0e0130..74f01304 100644 | |
--- a/src/mqtt/hasp_mqtt_ha.cpp | |
+++ b/src/mqtt/hasp_mqtt_ha.cpp | |
@@ -183,6 +183,7 @@ void mqtt_ha_register_connectivity() | |
void mqtt_ha_register_backlight() | |
{ | |
+ /* | |
DynamicJsonDocument doc(1024); | |
char item[16]; | |
snprintf_P(item, sizeof(item), PSTR("backlight")); | |
@@ -207,6 +208,7 @@ void mqtt_ha_register_backlight() | |
snprintf_P(buffer, sizeof(buffer), PSTR("%s/light/%s/%s/config"), discovery_prefix, haspDevice.get_hostname(), | |
item); | |
mqtt_ha_send_json(buffer, doc); | |
+ */ | |
} | |
void mqtt_ha_register_moodlight() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment