]> git.donarmstrong.com Git - qmk_firmware.git/commit
oneshot timeout would only timeout after an event.
authorSjB <steve@sagacity.ca>
Mon, 16 Jan 2017 04:12:42 +0000 (23:12 -0500)
committerSjB <steve@sagacity.ca>
Mon, 16 Jan 2017 04:29:24 +0000 (23:29 -0500)
commit6f44ca7a59d60e20c1d35e8edc916571f5fe40ef
tree079ec44f9e6160870d39e800f9a48224334d0b0c
parent6f448856151572f5bee329e68842cdda867fa66b
oneshot timeout would only timeout after an event.

After setting a ONESHOT_TIMEOUT value, the oneshot layer state would
not expire without an event being triggered (key pressed). The reason
was that in the process_record function we would return priort to
execute the process_action function if it detected a NOEVENT cycle. The
process_action contained the codes to timeout the oneshot layer state.
The codes to clear the oneshot layer state have been move just in
front of where we check for the NOEVENT cycle in the process_record
function.
tmk_core/common/action.c