From ce1a10439733c29369a16748c18d8ff353d45b07 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 6 Jan 2021 23:15:43 +0100 Subject: [PATCH] turn the /PID reporting off by default --- tasmota/xdrv_49_pid.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/xdrv_49_pid.ino b/tasmota/xdrv_49_pid.ino index eaf2ea92f..676602003 100644 --- a/tasmota/xdrv_49_pid.ino +++ b/tasmota/xdrv_49_pid.ino @@ -363,10 +363,9 @@ void PIDShowValues(void) { static void run_pid() { - #define PID_BACKWARD_COMPATIBLE +#ifdef PID_BACKWARD_COMPATIBLE // This part is left inside to regularly publish the PID Power via // `%topic%/PID {"power":"0.000"}` -#ifdef PID_BACKWARD_COMPATIBLE double power = pid.tick(pid_current_time_secs); char str_buf[FLOATSZ]; dtostrfd(power, 3, str_buf);