Skip to content

Commit

Permalink
fix gpio off-by-one in dmx loop
Browse files Browse the repository at this point in the history
  • Loading branch information
brucelowekamp committed Nov 19, 2019
1 parent 95cb61c commit 6ceabbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gpio/GPIODriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ceabbd

Please sign in to comment.