Skip to content

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

@Sr-psycho

Description

@Sr-psycho

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions