mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
Update ds248x.cpp
clang format
This commit is contained in:
parent
dd5f0767a2
commit
4de9b83cb9
@ -352,7 +352,7 @@ uint8_t DS248xComponent::read_config_() {
|
||||
void DS248xComponent::write_config_(uint8_t cfg) {
|
||||
std::array<uint8_t, 2> cmd;
|
||||
cmd[0] = DS248X_COMMAND_WRITECONFIG;
|
||||
cmd[1] = cfg | ((~cfg) << 4); // NOLINT
|
||||
cmd[1] = cfg | ((~cfg) << 4); // NOLINT
|
||||
this->write(cmd.data(), sizeof(cmd));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user