pico: via: building default keymaps fails on missing raw_hid_receive (#218)

minor build fix: building a default keymap that does not enable VIA(L) leads to linker error, since raw_hid_receive is only available with VIA enabled, implemented in quantum/via.c

Signed-off-by: Johannes Schneider <johschneider@googlemail.com>

Co-authored-by: Johannes <you@example.com>
This commit is contained in:
JohSchneider 2022-08-04 16:48:15 +00:00 • committed by GitHub
commit 55a7482e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,9 +272,11 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t rep
// LED status
keyboard_indicator_led = buffer[0];
break;
#ifdef VIA_ENABLE
case ITF_NUM_HID_RAW:
raw_hid_receive((uint8_t*)buffer, bufsize);
break;
#endif
default:
break;
}