1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 07:08:20 +00:00

Update ds248x.cpp

clang format
This commit is contained in:
Iron Man 2024-04-24 22:58:24 +02:00 committed by GitHub
parent dd5f0767a2
commit 4de9b83cb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,7 +352,7 @@ uint8_t DS248xComponent::read_config_() {
void DS248xComponent::write_config_(uint8_t cfg) { void DS248xComponent::write_config_(uint8_t cfg) {
std::array<uint8_t, 2> cmd; std::array<uint8_t, 2> cmd;
cmd[0] = DS248X_COMMAND_WRITECONFIG; cmd[0] = DS248X_COMMAND_WRITECONFIG;
cmd[1] = cfg | ((~cfg) << 4); // NOLINT cmd[1] = cfg | ((~cfg) << 4); // NOLINT
this->write(cmd.data(), sizeof(cmd)); this->write(cmd.data(), sizeof(cmd));
} }