device: fix small typo, fixes 1571 (#1572)

This commit is contained in:
git2323 2023-11-18 11:49:53 +01:00 committed by GitHub
parent edf4b7d448
commit f9a86bced6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ do_transmit_data(DataGraphTraverser *, const DataNodeTransmit &,
const ButtonEvent &event = bel->get_event(i);
if (event._type == ButtonEvent::T_down) {
_button_states[event._button] = true;
} else if (event._type == ButtonEvent::T_down) {
} else if (event._type == ButtonEvent::T_up) {
_button_states[event._button] = false;
}
}