Skip to content

Commit

Permalink
fix compile USE_PID (#19890)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudor authored Oct 31, 2023
1 parent 6527442 commit f9717ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,6 @@ void PIDShowValues(void) {
}

#ifdef USE_WEBSERVER
void PIDShowValuesWeb(void) {

#define D_PID_DISPLAY_NAME "PID Controller"
#define D_PID_SET_POINT "Set Point"
#define D_PID_PRESENT_VALUE "Current Value"
Expand All @@ -466,12 +464,13 @@ void PIDShowValuesWeb(void) {
#define D_PID_MODE_MANUAL "Manual"
#define D_PID_MODE_OFF "Off"

const char HTTP_PID_HL[] PROGMEM = "{s}<hr>{m}<hr>{e}";
const char HTTP_PID_INFO[] PROGMEM = "{s}" D_PID_DISPLAY_NAME "{m}%s{e}";
const char HTTP_PID_SP_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f ";
const char HTTP_PID_PV_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f ";
const char HTTP_PID_POWER_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f " D_UNIT_PERCENT;
const char HTTP_PID_HL[] PROGMEM = "{s}<hr>{m}<hr>{e}";
const char HTTP_PID_INFO[] PROGMEM = "{s}" D_PID_DISPLAY_NAME "{m}%s{e}";
const char HTTP_PID_SP_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f ";
const char HTTP_PID_PV_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f ";
const char HTTP_PID_POWER_FORMAT[] PROGMEM = "{s}%s " "{m}%*_f " D_UNIT_PERCENT;

void PIDShowValuesWeb(void) {
float f_buf;

WSContentSend_P(HTTP_PID_HL);
Expand Down

0 comments on commit f9717ce

Please sign in to comment.