From 28dcef849fcce9ac989b5b046eca2a87d04ef336 Mon Sep 17 00:00:00 2001 From: Peter Hindes <19994487+PeterHindes@users.noreply.github.com> Date: Thu, 10 Nov 2022 18:05:36 -0700 Subject: [PATCH] Update BleKeyboard.cpp --- BleKeyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BleKeyboard.cpp b/BleKeyboard.cpp index 0d043f4..04b7472 100644 --- a/BleKeyboard.cpp +++ b/BleKeyboard.cpp @@ -186,11 +186,11 @@ void BleKeyboard::set_version(uint16_t version) { this->version = version; } -void BleKeyboard::sendReport(KeyReport* keys) +void BleKeyboard::sendReport(BLEKeyReport* keys) { if (this->isConnected()) { - this->inputKeyboard->setValue((uint8_t*)keys, sizeof(KeyReport)); + this->inputKeyboard->setValue((uint8_t*)keys, sizeof(BLEKeyReport)); this->inputKeyboard->notify(); #if defined(USE_NIMBLE) // vTaskDelay(delayTicks); @@ -543,4 +543,4 @@ void BleKeyboard::delay_ms(uint64_t ms) { } while(esp_timer_get_time() < e) {} } -} \ No newline at end of file +}