Skip to content
Permalink
Browse files

fix gpio off-by-one in dmx loop

  • Loading branch information
brucelowekamp committed Nov 17, 2019
1 parent 95cb61c commit 6ceabbd6303b7a15debc2120a8e9f1aed84d6f26
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/gpio/GPIODriver.cpp
@@ -168,7 +168,7 @@ bool GPIODriver::UpdateGPIOPins(const DmxBuffer &dmx) {
};

for (uint16_t i = 0;
i < m_gpio_pins.size() && (i + m_options.start_address < dmx.Size());
i < m_gpio_pins.size() && (i + m_options.start_address - 1u < dmx.Size());
i++) {
Action action = NO_CHANGE;
uint8_t slot_value = dmx.Get(i + m_options.start_address - 1);

0 comments on commit 6ceabbd

Please sign in to comment.
You can’t perform that action at this time.