mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 12:46:22 +01:00
Fix clang format
This commit is contained in:
parent
3dbf3f60fe
commit
5539b12619
@ -20,7 +20,7 @@ Trigger<std::vector<uint8_t>> *BLETriggers::create_on_write_trigger(BLECharacter
|
|||||||
|
|
||||||
void BLECharacteristicSetValueActionManager::set_listener(BLECharacteristic *characteristic,
|
void BLECharacteristicSetValueActionManager::set_listener(BLECharacteristic *characteristic,
|
||||||
EventEmitterListenerID listener_id,
|
EventEmitterListenerID listener_id,
|
||||||
const std::function<void()>& pre_notify_listener) {
|
const std::function<void()> &pre_notify_listener) {
|
||||||
// Check if there is already a listener for this characteristic
|
// Check if there is already a listener for this characteristic
|
||||||
if (this->listeners_.count(characteristic) > 0) {
|
if (this->listeners_.count(characteristic) > 0) {
|
||||||
// Unpack the pair listener_id, pre_notify_listener_id
|
// Unpack the pair listener_id, pre_notify_listener_id
|
||||||
|
@ -37,7 +37,7 @@ class BLECharacteristicSetValueActionManager
|
|||||||
return &instance;
|
return &instance;
|
||||||
}
|
}
|
||||||
void set_listener(BLECharacteristic *characteristic, EventEmitterListenerID listener_id,
|
void set_listener(BLECharacteristic *characteristic, EventEmitterListenerID listener_id,
|
||||||
const std::function<void()>& pre_notify_listener);
|
const std::function<void()> &pre_notify_listener);
|
||||||
EventEmitterListenerID get_listener(BLECharacteristic *characteristic) {
|
EventEmitterListenerID get_listener(BLECharacteristic *characteristic) {
|
||||||
return this->listeners_[characteristic].first;
|
return this->listeners_[characteristic].first;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user