From b2ff1158d08386224bb37cfc62d738c3256228c8 Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 30 Nov 2025 20:53:31 +0100 Subject: [PATCH] Bypass faulty build system the minifcation is broken --- fan-controller/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fan-controller/src/main.rs b/fan-controller/src/main.rs index 7aab5b4..2f07815 100644 --- a/fan-controller/src/main.rs +++ b/fan-controller/src/main.rs @@ -847,7 +847,7 @@ async fn mqtt_task( // Don't need to set speed_range_min because it is 1 by default // Speed set to max 32000 which is 50% of what the fans can do but more is not needed. This way the fans last longer - const DISCOVERY_PAYLOAD: &[u8] = env!("FAN_CONTROLLER_DISCOVERY_PAYLOAD").as_bytes(); + const DISCOVERY_PAYLOAD: &[u8] = include_bytes!("../discovery_payload.json"); // "~": "fancontroller", // -- 2.51.2