From 76d4847b8c6329a10bf7377da0e7cae321ac9db5 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 6 Dec 2020 11:07:30 -0500 Subject: [PATCH] Strobe doesn't need to know the universe that it's receiving. --- wiflash_esp32/strobe_esp32.cpp | 3 +-- wiflash_esp32/strobe_esp32.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wiflash_esp32/strobe_esp32.cpp b/wiflash_esp32/strobe_esp32.cpp index 62e43a2..d9f9079 100644 --- a/wiflash_esp32/strobe_esp32.cpp +++ b/wiflash_esp32/strobe_esp32.cpp @@ -51,8 +51,7 @@ uint32_t dr_to_micros(uint8_t dmx) { /* Constructor */ -Strobe::Strobe(uint16_t universe, uint16_t address) { - m_universe = universe; +Strobe::Strobe(uint16_t address) { m_address = address; } diff --git a/wiflash_esp32/strobe_esp32.h b/wiflash_esp32/strobe_esp32.h index ec071df..39f4d8d 100644 --- a/wiflash_esp32/strobe_esp32.h +++ b/wiflash_esp32/strobe_esp32.h @@ -41,7 +41,7 @@ typedef enum { class Strobe { public: - Strobe(uint16_t universe = 1, uint16_t address = 1); + Strobe(uint16_t address = 1); bool begin(uint8_t pin, uint8_t pwm); // call in setup() static void update(void * param); // update task @@ -49,7 +49,6 @@ class Strobe { void recvData(e131_packet_t *packet); // data recieved callback private: - uint16_t m_universe; // sACN universe uint16_t m_address; // DMX address uint16_t m_int; // state machine intensity