Fix whitespaces linting issues

This commit is contained in:
Rapsssito 2024-06-29 12:25:14 +02:00
parent 4ba9392325
commit 6b089c27a3
2 changed files with 4 additions and 4 deletions

View file

@ -31,12 +31,12 @@ class BLEServerAutomationInterface {
static Trigger<std::string> *create_on_write_trigger(BLECharacteristic *characteristic);
template<typename... Ts> class BLECharacteristicSetValueAction : public Action<Ts...> {
public:
public:
BLECharacteristicSetValueAction(BLECharacteristic *characteristic) : parent_(characteristic) {}
TEMPLATABLE_VALUE(std::string, value)
void play(Ts... x) override { this->parent_->set_value(this->value_.value(x...)); }
protected:
protected:
BLECharacteristic *parent_;
};
};

View file

@ -60,12 +60,12 @@ void BLEService::do_create(BLEServer *server) {
void BLEService::emit_client_connect(const uint16_t conn_id) {
if (this->on_client_connect_ && this->is_running())
this->on_client_connect_(conn_id);
this->on_client_connect_(conn_id);
}
void BLEService::emit_client_disconnect(const uint16_t conn_id) {
if (this->on_client_disconnect_ && this->is_running())
this->on_client_disconnect_(conn_id);
this->on_client_disconnect_(conn_id);
}
void BLEService::do_delete() {