summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2025-03-05 13:26:44 +1100
committerjacqueline <me@jacqueline.id.au>2025-03-05 13:26:44 +1100
commit826190edcf14980f6a31f209552ec34d7fcbb746 (patch)
tree943651c8faca4b7e8c2dca7358d3af5e4f175368 /src/drivers/include
parent1d1cae2a82f5cc2596025da7d2c3f3a49cf59012 (diff)
downloadtangara-fw-826190edcf14980f6a31f209552ec34d7fcbb746.tar.gz
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
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/drivers/bluetooth.hpp2
1 files changed, 2 insertions, 0 deletions
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<BluetoothState> {
static auto pairedDevice() -> std::optional<bluetooth::MacAndName>;
static auto pairedDevice(std::optional<bluetooth::MacAndName>) -> void;
+ static auto eventHandler() -> std::function<void(Event)>&;
+
static auto discovery() -> bool;
static auto discovery(bool) -> void;
static auto discoveredDevices() -> std::vector<Device>;