From 826190edcf14980f6a31f209552ec34d7fcbb746 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 5 Mar 2025 13:26:44 +1100 Subject: Emit a 'known devices changed' event when we forget a known device Makes the Lua UI update immediately after running the bt_forget command added in PR #289 --- src/drivers/include/drivers/bluetooth.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drivers/include') diff --git a/src/drivers/include/drivers/bluetooth.hpp b/src/drivers/include/drivers/bluetooth.hpp index b333bd15..7ee49e2a 100644 --- a/src/drivers/include/drivers/bluetooth.hpp +++ b/src/drivers/include/drivers/bluetooth.hpp @@ -162,6 +162,8 @@ class BluetoothState : public tinyfsm::Fsm { static auto pairedDevice() -> std::optional; static auto pairedDevice(std::optional) -> void; + static auto eventHandler() -> std::function&; + static auto discovery() -> bool; static auto discovery(bool) -> void; static auto discoveredDevices() -> std::vector; -- cgit v1.2.3