From f044ccdeec1a9995c4442a69b3cdeb9a2faed4c5 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:26:12 +0100 Subject: [PATCH] Remove commands ArtNetStop and ArtNetStart --- tasmota/include/i18n.h | 2 -- tasmota/tasmota_xdrv_driver/xdrv_04_light.ino | 4 ++-- .../xdrv_04_light_artnet.ino | 23 ------------------- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/tasmota/include/i18n.h b/tasmota/include/i18n.h index 8c8e3e4b5..a46c9d1a1 100644 --- a/tasmota/include/i18n.h +++ b/tasmota/include/i18n.h @@ -503,8 +503,6 @@ #define D_CMND_PIXELS "Pixels" #define D_CMND_STEPPIXELS "StepPixels" #define D_CMND_ARTNET "ArtNet" -#define D_CMND_ARTNET_START "ArtNetStart" -#define D_CMND_ARTNET_STOP "ArtNetStop" #define D_CMND_ARTNET_CONFIG "ArtNetConfig" #define D_SO_ARTNET_AUTORUN "ArtNetAutorun" #define D_CMND_RGBWWTABLE "RGBWWTable" diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino index ef457a580..c42281b3d 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light.ino @@ -151,7 +151,7 @@ const char kLightCommands[] PROGMEM = "|" // No prefix "|" D_CMND_SEQUENCE_OFFSET #endif // USE_DGR_LIGHT_SEQUENCE #ifdef USE_LIGHT_ARTNET - "|" D_CMND_ARTNET "|" D_CMND_ARTNET_START "|" D_CMND_ARTNET_STOP "|" D_CMND_ARTNET_CONFIG + "|" D_CMND_ARTNET "|" D_CMND_ARTNET_CONFIG #endif "|UNDOCA" ; @@ -175,7 +175,7 @@ void (* const LightCommand[])(void) PROGMEM = { &CmndSequenceOffset, #endif // USE_DGR_LIGHT_SEQUENCE #ifdef USE_LIGHT_ARTNET - &CmndArtNet, &CmndArtNetStart, &CmndArtNetStop, &CmndArtNetConfig, + &CmndArtNet, &CmndArtNetConfig, #endif &CmndUndocA }; diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino index 8b5218c12..701374bd1 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino @@ -381,18 +381,6 @@ bool ArtNetStart(void) { return true; } -// -// Command `ArtNetStart` -// Params: XXX -// -void CmndArtNetStart(void) { - if (ArtNetStart()) { - ResponseCmndDone(); - } else { - ResponseCmndError(); - } -} - // Stop the ArtNet UDP flow and disconnect server void ArtNetStop(void) { artnet_udp_connected = false; @@ -411,17 +399,6 @@ void ArtNetStop(void) { } } -void CmndArtNetStop(void) { - ArtNetStop(); - Settings->flag6.artnet_autorun = false; - // restore default scheme - Settings->light_scheme = LS_POWER; - // Restore sleep value - TasmotaGlobal.sleep = Settings->sleep; - // OK - ResponseCmndDone(); -} - void CmndArtNet(void) { if (0 == XdrvMailbox.payload) { ArtNetStop();