Skip to content

Commit 4f54e46

Browse files
committed
Correct double inversion bug in inverted logic extension
1 parent ffc6c5f commit 4f54e46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/gpio/GPIODriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ bool GPIODriver::UpdateGPIOPins(const DmxBuffer &dmx) {
217217
state = !state;
218218
}
219219
// Convert to char and write to sysfs
220-
data = (state ? '0' : '1');
220+
data = (state ? '1' : '0');
221221
if (write(m_gpio_pins[i].fd, &data, sizeof(data)) < 0) {
222222
OLA_WARN << "Failed to toggle GPIO pin " << i << ", fd "
223223
<< static_cast<int>(m_gpio_pins[i].fd) << ": "

0 commit comments

Comments
 (0)