mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02:00
Force braces around multi-line statements (#3094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -278,10 +278,11 @@ void FingerprintGrowComponent::delete_all_fingerprints() {
|
||||
|
||||
void FingerprintGrowComponent::led_control(bool state) {
|
||||
ESP_LOGD(TAG, "Setting LED");
|
||||
if (state)
|
||||
if (state) {
|
||||
this->data_ = {LED_ON};
|
||||
else
|
||||
} else {
|
||||
this->data_ = {LED_OFF};
|
||||
}
|
||||
switch (this->send_command_()) {
|
||||
case OK:
|
||||
ESP_LOGD(TAG, "LED set");
|
||||
|
||||
Reference in New Issue
Block a user