From 2fbad7b389a9da736b14e87b6b565fdeb329ce4d Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 7 May 2020 16:53:56 +0200 Subject: [PATCH] Change webcam driver number Change webcam driver number as ESP32 driver only starting now from 81. --- BUILDS.md | 2 ++ tasmota/support_features.ino | 5 +++-- tasmota/{xdrv_39_webcam.ino => xdrv_81_webcam.ino} | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) rename tasmota/{xdrv_39_webcam.ino => xdrv_81_webcam.ino} (99%) 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) {