diff --git a/BUILDS.md b/BUILDS.md index ae14c8960..7d1e4fb6d 100644 --- a/BUILDS.md +++ b/BUILDS.md @@ -169,3 +169,5 @@ | USE_DISPLAY_ILI9488 | - | - | - | - | - | - | - | | USE_DISPLAY_SSD1351 | - | - | - | - | - | - | - | | USE_DISPLAY_RA8876 | - | - | - | - | - | - | - | +| | | | | | | | | +| USE_WEBCAM | - | - | - | - | - | - | - | ESP32 only diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index d13eba297..2476b0453 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -587,6 +587,7 @@ void GetFeatures(void) // feature6 |= 0x10000000; // feature6 |= 0x20000000; // feature6 |= 0x40000000; -// feature6 |= 0x80000000; - +#ifdef USE_WEBCAM + feature6 |= 0x80000000; +#endif } diff --git a/tasmota/xdrv_39_webcam.ino b/tasmota/xdrv_81_webcam.ino similarity index 99% rename from tasmota/xdrv_39_webcam.ino rename to tasmota/xdrv_81_webcam.ino index f85a543b7..a317b1aaa 100644 --- a/tasmota/xdrv_39_webcam.ino +++ b/tasmota/xdrv_81_webcam.ino @@ -1,5 +1,5 @@ /* - xdrv_39_webcam.ino - ESP32 webcam support for Tasmota + xdrv_81_webcam.ino - ESP32 webcam support for Tasmota Copyright (C) 2020 Gerhard Mutz and Theo Arends @@ -44,7 +44,7 @@ * board_build.f_cpu = 240000000L \*********************************************************************************************/ -#define XDRV_39 39 +#define XDRV_81 81 #define CAMERA_MODEL_AI_THINKER @@ -867,7 +867,7 @@ void CmndWebcam(void) { * Interface \*********************************************************************************************/ -bool Xdrv39(uint8_t function) { +bool Xdrv81(uint8_t function) { bool result = false; switch (function) {