diff --git a/platformio.ini b/platformio.ini index 664fe74..ced4507 100644 --- a/platformio.ini +++ b/platformio.ini @@ -32,7 +32,7 @@ build_flags = -D LED_FLASH=4 -D LED_BUILTIN=33 -D BOARD_HAS_PSRAM - -D TEMPRATURE_SEND_READ + -D TEMPRATURE_SENS_READ -mfix-esp32-psram-cache-issue -D IOTWEBCONF_PASSWORD_LEN=64 diff --git a/src/main.cpp b/src/main.cpp index 97e7db7..bb302e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,7 @@ #include #include -#ifdef TEMPRATURE_SEND_READ extern "C" uint8_t temprature_sens_read(); -#endif // HTML files extern const char index_html_min_start[] asm("_binary_html_index_min_html_start"); @@ -121,7 +119,7 @@ void handle_root() {"PsRamSize", format_memory(ESP.getPsramSize(), 0)}, // Diagnostics {"Uptime", String(format_duration(millis() / 1000))}, -#ifdef TEMPRATURE_SEND_READ +#ifdef TEMPRATURE_SENS_READ {"Temperature", String((temprature_sens_read() - 32) / 1.8)}, #else {"Temperature", "N/A"},