aboutsummaryrefslogtreecommitdiff
path: root/common/keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-11-24 13:50:33 +0900
committertmk <nobody@nowhere>2014-11-24 13:50:33 +0900
commit363950982a291c3bfa03ac6362061b1d37dc06b0 (patch)
treec46fc53fe00137ced3c8edd3d0766ee844f77516 /common/keyboard.c
parenteb90ed6238426db9367e294abfaefb5de07564f5 (diff)
parent60096e11c77980ca6b54674c5b68248e8aa15d8d (diff)
downloadqmk_firmware-363950982a291c3bfa03ac6362061b1d37dc06b0.tar.gz
qmk_firmware-363950982a291c3bfa03ac6362061b1d37dc06b0.zip
Merge branch 'rn42' into merge_rn42
Conflicts: .gitignore common.mk common/debug_config.h common/print.h
Diffstat (limited to 'common/keyboard.c')
-rw-r--r--common/keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index 020be8ead..1e3fb510a 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#include <stdint.h> 17#include <stdint.h>
18#include <util/delay.h>
19#include "keyboard.h" 18#include "keyboard.h"
20#include "matrix.h" 19#include "matrix.h"
21#include "keymap.h" 20#include "keymap.h"
@@ -107,7 +106,7 @@ void keyboard_task(void)
107 for (uint8_t c = 0; c < MATRIX_COLS; c++) { 106 for (uint8_t c = 0; c < MATRIX_COLS; c++) {
108 if (matrix_change & ((matrix_row_t)1<<c)) { 107 if (matrix_change & ((matrix_row_t)1<<c)) {
109 action_exec((keyevent_t){ 108 action_exec((keyevent_t){
110 .key = (key_t){ .row = r, .col = c }, 109 .key = (keypos_t){ .row = r, .col = c },
111 .pressed = (matrix_row & ((matrix_row_t)1<<c)), 110 .pressed = (matrix_row & ((matrix_row_t)1<<c)),
112 .time = (timer_read() | 1) /* time should not be 0 */ 111 .time = (timer_read() | 1) /* time should not be 0 */
113 }); 112 });