From b3bcafcc4bf1314632af822db9ddb1783ebb97cf Mon Sep 17 00:00:00 2001 From: fauxpark Date: Tue, 19 Dec 2017 19:41:51 +1100 Subject: [PATCH] Unsign key argument in add_key_to_report --- tmk_core/common/report.c | 4 ++-- tmk_core/common/report.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tmk_core/common/report.c b/tmk_core/common/report.c index 74c6d3fdd47..4b25f4428c1 100644 --- a/tmk_core/common/report.c +++ b/tmk_core/common/report.c @@ -176,7 +176,7 @@ void del_key_bit(report_keyboard_t* keyboard_report, uint8_t code) } #endif -void add_key_to_report(report_keyboard_t* keyboard_report, int8_t key) +void add_key_to_report(report_keyboard_t* keyboard_report, uint8_t key) { #ifdef NKRO_ENABLE if (keyboard_protocol && keymap_config.nkro) { @@ -204,4 +204,4 @@ void clear_keys_from_report(report_keyboard_t* keyboard_report) for (int8_t i = 1; i < KEYBOARD_REPORT_SIZE; i++) { keyboard_report->raw[i] = 0; } -} \ No newline at end of file +} diff --git a/tmk_core/common/report.h b/tmk_core/common/report.h index 899fc524cbd..a0811f9a3c8 100644 --- a/tmk_core/common/report.h +++ b/tmk_core/common/report.h @@ -184,7 +184,7 @@ void add_key_bit(report_keyboard_t* keyboard_report, uint8_t code); void del_key_bit(report_keyboard_t* keyboard_report, uint8_t code); #endif -void add_key_to_report(report_keyboard_t* keyboard_report, int8_t key); +void add_key_to_report(report_keyboard_t* keyboard_report, uint8_t key); void del_key_from_report(report_keyboard_t* keyboard_report, uint8_t key); void clear_keys_from_report(report_keyboard_t* keyboard_report);