]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/keyboard.c
Merge branch 'rn42' into merge_rn42
[tmk_firmware.git] / common / keyboard.c
index 020be8eadf2f09ad9bc1e94a32e7e83c5730c09d..1e3fb510a44d254d01a3b290ac6042764e785552 100644 (file)
@@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include <stdint.h>
-#include <util/delay.h>
 #include "keyboard.h"
 #include "matrix.h"
 #include "keymap.h"
@@ -107,7 +106,7 @@ void keyboard_task(void)
             for (uint8_t c = 0; c < MATRIX_COLS; c++) {
                 if (matrix_change & ((matrix_row_t)1<<c)) {
                     action_exec((keyevent_t){
-                        .key = (key_t){ .row = r, .col = c },
+                        .key = (keypos_t){ .row = r, .col = c },
                         .pressed = (matrix_row & ((matrix_row_t)1<<c)),
                         .time = (timer_read() | 1) /* time should not be 0 */
                     });