Change webcam driver number

Change webcam driver number as ESP32 driver only starting now from 81.
This commit is contained in:
Theo Arends 2020-05-07 16:53:56 +02:00
parent 0ca5bf4e41
commit 2fbad7b389
3 changed files with 8 additions and 5 deletions

View File

@ -169,3 +169,5 @@
| USE_DISPLAY_ILI9488 | - | - | - | - | - | - | - | | USE_DISPLAY_ILI9488 | - | - | - | - | - | - | - |
| USE_DISPLAY_SSD1351 | - | - | - | - | - | - | - | | USE_DISPLAY_SSD1351 | - | - | - | - | - | - | - |
| USE_DISPLAY_RA8876 | - | - | - | - | - | - | - | | USE_DISPLAY_RA8876 | - | - | - | - | - | - | - |
| | | | | | | | |
| USE_WEBCAM | - | - | - | - | - | - | - | ESP32 only

View File

@ -587,6 +587,7 @@ void GetFeatures(void)
// feature6 |= 0x10000000; // feature6 |= 0x10000000;
// feature6 |= 0x20000000; // feature6 |= 0x20000000;
// feature6 |= 0x40000000; // feature6 |= 0x40000000;
// feature6 |= 0x80000000; #ifdef USE_WEBCAM
feature6 |= 0x80000000;
#endif
} }

View File

@ -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 Copyright (C) 2020 Gerhard Mutz and Theo Arends
@ -44,7 +44,7 @@
* board_build.f_cpu = 240000000L * board_build.f_cpu = 240000000L
\*********************************************************************************************/ \*********************************************************************************************/
#define XDRV_39 39 #define XDRV_81 81
#define CAMERA_MODEL_AI_THINKER #define CAMERA_MODEL_AI_THINKER
@ -867,7 +867,7 @@ void CmndWebcam(void) {
* Interface * Interface
\*********************************************************************************************/ \*********************************************************************************************/
bool Xdrv39(uint8_t function) { bool Xdrv81(uint8_t function) {
bool result = false; bool result = false;
switch (function) { switch (function) {