add extern "C" to matrix.cpp

This commit is contained in:
Balz Guenat 2017-08-12 18:33:49 +02:00 committed by Jack Humbert
parent 2aa5e44640
commit fa86b10138

View File

@ -83,6 +83,8 @@ KBDReportParser kbd_parser3;
KBDReportParser kbd_parser4;
extern "C"
{
uint8_t matrix_rows(void) { return MATRIX_ROWS; }
uint8_t matrix_cols(void) { return MATRIX_COLS; }
bool matrix_has_ghost(void) { return false; }
@ -232,3 +234,5 @@ void led_set(uint8_t usb_led)
kbd3.SetReport(0, 0, 2, 0, 1, &usb_led);
kbd4.SetReport(0, 0, 2, 0, 1, &usb_led);
}
};