1
0
Fork 0

Unsign key argument in add_key_to_report

This commit is contained in:
fauxpark 2017-12-19 19:41:51 +11:00 committed by Jack Humbert
parent b8f08d936d
commit b3bcafcc4b
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}
}
}

View file

@ -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);