Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Media buttons don't get released #31

Open
Sr-psycho opened this issue Dec 16, 2023 · 1 comment
Open

[BUG] Media buttons don't get released #31

Sr-psycho opened this issue Dec 16, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Sr-psycho
Copy link

Sr-psycho commented Dec 16, 2023

Describe the bug
A clear and concise description of what the bug is.

Please complete the following information:

  • ESPHome version: [e.g. 2021.11.6]
  • Component version [e.g. 2.3.1]
void Esp32BleKeyboard::press(MediaKeyReport key, bool with_timer) {
  if (this->is_connected()) {
    if (with_timer) {
      this->update_timer();
    }
    bleKeyboard.press(key);
	   delay(100);//<--
    bleKeyboard.release(key);//<--
  }
}

Hello Dmitry! Please make this correction, because without it the media buttons remain enabled, even if you write the necessary ble_keyboard.release commands in the config file.

@muddyfeet
Copy link

Actually the bug is in the underlying blekeyboard code by T-vK. Have logged an issue on that site: T-vK/ESP32-BLE-Keyboard#289. ReleaseAll does not release the MediaKeys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants