From 1fd5c44e6c16d1cadcd2315ca882e748592d10b8 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 9 Jan 2021 18:23:07 +0100 Subject: [PATCH] add missing response; fix exclusion of PID power --- tasmota/xdrv_49_pid.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_49_pid.ino b/tasmota/xdrv_49_pid.ino index fdc02ea50..529ca3913 100644 --- a/tasmota/xdrv_49_pid.ino +++ b/tasmota/xdrv_49_pid.ino @@ -237,6 +237,7 @@ void CmndSetPv(void) { // this runs it at the next second run_pid_now = true; } + ResponseCmndNumber(atof(XdrvMailbox.data)); } void CmndSetSp(void) { @@ -358,7 +359,7 @@ void PIDShowValues(void) { static void run_pid() { double power = pid.tick(pid_current_time_secs); -#ifdef PID_DONT_USE_PID_TOPIC +#ifndef PID_DONT_USE_PID_TOPIC // This part is left inside to regularly publish the PID Power via // `%topic%/PID {"power":"0.000"}` char str_buf[FLOATSZ];