Add missing virtser_init() to ChibiOS code (#15356)

This commit is contained in:
Ryan 2021-11-30 16:54:18 +11:00 committed by GitHub
parent 04cad4582e
commit ed49dbeac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1099,6 +1099,8 @@ void midi_ep_task(void) {
#ifdef VIRTSER_ENABLE #ifdef VIRTSER_ENABLE
void virtser_init(void) {}
void virtser_send(const uint8_t byte) { chnWrite(&drivers.serial_driver.driver, &byte, 1); } void virtser_send(const uint8_t byte) { chnWrite(&drivers.serial_driver.driver, &byte, 1); }
__attribute__((weak)) void virtser_recv(uint8_t c) { __attribute__((weak)) void virtser_recv(uint8_t c) {