1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Update ds248x.cpp

clang format
This commit is contained in:
Iron Man 2024-04-23 21:49:32 +02:00 committed by GitHub
parent cb82bedb8c
commit bfe072f7d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -517,7 +517,7 @@ bool DS248xComponent::search_(uint64_t *address) {
direction = (search_address_ & search_bit) != 0;
} else {
direction = i == search_last_discrepancy_;
}
}
write_command_(DS248X_COMMAND_TRIPLET, direction ? 0x80 : 0x00);
@ -532,13 +532,13 @@ bool DS248xComponent::search_(uint64_t *address) {
return false;
} else if (!id && !comp_id && !direction) {
last_zero = i;
}
}
if (direction) {
search_address_ |= search_bit;
} else {
search_address_ &= ~search_bit;
}
}
}
search_last_discrepancy_ = last_zero;