Allow for connecting to the paired device from the known devices list

custom
ailurux 4 months ago
parent 048cfd705f
commit a1d64dce07
  1. 2
      src/drivers/bluetooth.cpp

@ -396,7 +396,7 @@ auto BluetoothState::pairedDevice() -> std::optional<MacAndName> {
auto BluetoothState::pairedDevice(std::optional<MacAndName> dev) -> void { auto BluetoothState::pairedDevice(std::optional<MacAndName> dev) -> void {
auto cur = sPairedWith_; auto cur = sPairedWith_;
if (dev && cur && dev->mac == cur->mac) { if (dev && cur && dev->mac == cur->mac) {
return; ESP_LOGI(kTag, "Paired device updated with same value");
} }
if (dev) { if (dev) {
ESP_LOGI(kTag, "pairing with '%s' (%u%u%u%u%u%u)", dev->name.c_str(), ESP_LOGI(kTag, "pairing with '%s' (%u%u%u%u%u%u)", dev->name.c_str(),

Loading…
Cancel
Save