turn the /PID reporting off by default

This commit is contained in:
Marcus 2021-01-06 23:15:43 +01:00
parent c396a9bbdb
commit ce1a104397
1 changed files with 1 additions and 2 deletions

View File

@ -363,10 +363,9 @@ void PIDShowValues(void) {
static void run_pid() static void run_pid()
{ {
#define PID_BACKWARD_COMPATIBLE #ifdef PID_BACKWARD_COMPATIBLE
// This part is left inside to regularly publish the PID Power via // This part is left inside to regularly publish the PID Power via
// `%topic%/PID {"power":"0.000"}` // `%topic%/PID {"power":"0.000"}`
#ifdef PID_BACKWARD_COMPATIBLE
double power = pid.tick(pid_current_time_secs); double power = pid.tick(pid_current_time_secs);
char str_buf[FLOATSZ]; char str_buf[FLOATSZ];
dtostrfd(power, 3, str_buf); dtostrfd(power, 3, str_buf);