diff --git a/tasmota/xdrv_42_i2s_audio.ino b/tasmota/xdrv_42_i2s_audio.ino index c87d763da..6849859de 100644 --- a/tasmota/xdrv_42_i2s_audio.ino +++ b/tasmota/xdrv_42_i2s_audio.ino @@ -591,6 +591,7 @@ void Cmd_MicRec(void) { } #endif // USE_M5STACK_CORE2 +#ifdef USE_WEBSERVER const char HTTP_WEBRADIO[] PROGMEM = "{s}" "I2S_WR-Title" "{m}%s{e}"; @@ -599,6 +600,7 @@ void I2S_WR_Show(void) { WSContentSend_PD(HTTP_WEBRADIO,wr_title); } } +#endif // USE_WEBSERVER #endif // USE_I2S_WEBRADIO diff --git a/tasmota/xdrv_46_ccloader.ino b/tasmota/xdrv_46_ccloader.ino index 8e258b91d..e8986df36 100644 --- a/tasmota/xdrv_46_ccloader.ino +++ b/tasmota/xdrv_46_ccloader.ino @@ -649,9 +649,10 @@ bool CCLChipFound() { return CCL.chip.ID!=0; } /*********************************************************************************************\ - * oresentation + * presentation \*********************************************************************************************/ +#ifdef USE_WEBSERVER void CCLoadershow(bool json) { if (json) { // unused @@ -664,6 +665,7 @@ void CCLoadershow(bool json) { } } } +#endif // USE_WEBSERVER /*********************************************************************************************\ * Interface @@ -682,9 +684,11 @@ bool Xdrv46(uint8_t function) { case FUNC_EVERY_100_MSECOND: CCLoaderLoop(); break; +#ifdef USE_WEBSERVER case FUNC_WEB_SENSOR: CCLoadershow(0); break; +#endif // USE_WEBSERVER } } return result; diff --git a/tasmota/xdrv_86_esp32_sonoff_spm.ino b/tasmota/xdrv_86_esp32_sonoff_spm.ino index 7316bed10..9538c71ac 100644 --- a/tasmota/xdrv_86_esp32_sonoff_spm.ino +++ b/tasmota/xdrv_86_esp32_sonoff_spm.ino @@ -1902,6 +1902,7 @@ char* SSPMEnergyFormat(char* result, float* input, uint32_t resolution, uint8_t* return result; } +#ifdef USE_WEBSERVER const char HTTP_SSPM_VOLTAGE[] PROGMEM = "{s}" D_VOLTAGE "%s" D_UNIT_VOLT "{e}"; // {s} = , {m} = , {e} = const char HTTP_SSPM_CURRENT[] PROGMEM = @@ -1916,6 +1917,7 @@ const char HTTP_SSPM_ENERGY[] PROGMEM = "{s}" D_ENERGY_TODAY "%s" D_UNIT_KILOWATTHOUR "{e}" "{s}" D_ENERGY_YESTERDAY "%s" D_UNIT_KILOWATTHOUR "{e}" "{s}" D_ENERGY_TOTAL "%s" D_UNIT_KILOWATTHOUR "{e}"; +#endif // USE_WEBSERVER void SSPMEnergyShow(bool json) { if (!TasmotaGlobal.devices_present) { return; } // Not ready yet @@ -1962,6 +1964,7 @@ void SSPMEnergyShow(bool json) { ResponseAppend_P(PSTR("%s%*_f"), (i>0)?",":"", Settings->flag2.current_resolution, &Sspm->current[i >>2][i &3]); } ResponseAppend_P(PSTR("]}")); +#ifdef USE_WEBSERVER } else { uint8_t relay[SSPM_MAX_MODULES * 4]; uint8_t indirect[SSPM_MAX_MODULES * 4]; @@ -2008,6 +2011,7 @@ void SSPMEnergyShow(bool json) { SSPMEnergyFormat(valu3_chr, Sspm->energy_total[0], Settings->flag2.energy_resolution, indirect, offset, count)); WSContentSend_P(PSTR("{t}")); // {t} = - Define for next FUNC_WEB_SENSOR } +#endif // USE_WEBSERVER } }