summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2017-12-19 19:41:51 +1100
committerJack Humbert <jack.humb@gmail.com>2017-12-19 09:25:26 -0500
commitb3bcafcc4bf1314632af822db9ddb1783ebb97cf (patch)
tree623b617450e70e17cb0198deb6916945930fb95b /tmk_core/common
parentb8f08d936d25ff081cfdd5dfbf8ed156dca2bba8 (diff)
Unsign key argument in add_key_to_report
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/report.c4
-rw-r--r--tmk_core/common/report.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/common/report.c b/tmk_core/common/report.c
index 74c6d3fdd4..4b25f4428c 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 899fc524cb..a0811f9a3c 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);