Strobe doesn't need to know the universe that it's receiving.

This commit is contained in:
Kevin Matz 2020-12-06 11:07:30 -05:00
parent b5e58743e4
commit 76d4847b8c
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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