Skip to content

Commit

Permalink
Merge pull request #2 from PeterHindes/patch-3
Browse files Browse the repository at this point in the history
Update BleKeyboard.cpp
  • Loading branch information
PeterHindes authored Nov 11, 2022
2 parents 4dd0c0b + 28dcef8 commit c811cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BleKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -543,4 +543,4 @@ void BleKeyboard::delay_ms(uint64_t ms) {
}
while(esp_timer_get_time() < e) {}
}
}
}

0 comments on commit c811cf1

Please sign in to comment.