Skip to content

Commit

Permalink
rename initDmx() -> initDmxOutput()
Browse files Browse the repository at this point in the history
  • Loading branch information
arneboe committed Aug 24, 2023
1 parent 46d5368 commit d54b3af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wled00/dmx_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ void handleDMXOutput()
dmx.update(); // update the DMX bus
}

void initDMX() {
void initDMXOutput() {
#ifdef ESP8266
dmx.init(512); // initialize with bus length
#else
dmx.initWrite(512); // initialize with bus length
#endif
}
#else
void initDMX(){}
void initDMXOutput(){}
void handleDMXOutput() {}
#endif
4 changes: 2 additions & 2 deletions wled00/fcn_declare.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ uint8_t __attribute__((pure)) gamma8(uint8_t b);
uint32_t __attribute__((pure)) gamma32(uint32_t); // WLEDMM: added attribute pure
uint8_t unGamma8(uint8_t value); // WLEDMM revert gamma correction

//dmx.cpp
void initDMX();
//dmx_output.cpp
void initDMXOutput();
void handleDMXOutput();

//dmx_input.cpp
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ void WLED::setup()
}
#endif
#ifdef WLED_ENABLE_DMX_OUTPUT
initDMX();
initDMXOutput();
#endif
#ifdef WLED_ENABLE_DMX_INPUT
dmxInput.init(dmxInputReceivePin, dmxInputTransmitPin, dmxInputEnablePin, dmxInputPort);
Expand Down

0 comments on commit d54b3af

Please sign in to comment.