From 9001c3fa3f8cd278d7a0f77c27c66ec5fc7205d2 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Mon, 22 Jan 2024 19:31:46 +0100 Subject: [PATCH] changed keyboard commands for HOME and BACK --- Platformio/src/device_keyboard_ble.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Platformio/src/device_keyboard_ble.cpp b/Platformio/src/device_keyboard_ble.cpp index bc72b83..9623d15 100644 --- a/Platformio/src/device_keyboard_ble.cpp +++ b/Platformio/src/device_keyboard_ble.cpp @@ -111,11 +111,15 @@ void keyboard_ble_executeCommand(std::string command, std::string additionalPayl } else if (command == KEYBOARD_BLE_BACK) { if (doLog) {Serial.printf("BACK received\r\n");} - keyboard_ble_write(KEY_ESC); + // test which one works best for your device + // keyboard_ble_write(KEY_ESC); + consumerControl_ble_write(KEY_MEDIA_WWW_BACK); } else if (command == KEYBOARD_BLE_HOME) { if (doLog) {Serial.printf("HOME received\r\n");} - keyboard_ble_home(); + // test which one works best for your device + // keyboard_ble_home(); + consumerControl_ble_write(KEY_MEDIA_WWW_HOME); } else if (command == KEYBOARD_BLE_MENU) { if (doLog) {Serial.printf("MENU received\r\n");}