From 0b140867812de7246913eab9418a00bd5120aa6a Mon Sep 17 00:00:00 2001 From: muddyfeet Date: Sun, 24 Mar 2024 20:18:20 +1100 Subject: [PATCH] Fixed MediaKeys releasing on ReleaseAll --- BleKeyboard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BleKeyboard.cpp b/BleKeyboard.cpp index 0d043f4..48a8930 100644 --- a/BleKeyboard.cpp +++ b/BleKeyboard.cpp @@ -468,6 +468,7 @@ void BleKeyboard::releaseAll(void) _mediaKeyReport[0] = 0; _mediaKeyReport[1] = 0; sendReport(&_keyReport); + sendReport(&_mediaKeyReport); } size_t BleKeyboard::write(uint8_t c) @@ -543,4 +544,4 @@ void BleKeyboard::delay_ms(uint64_t ms) { } while(esp_timer_get_time() < e) {} } -} \ No newline at end of file +}