mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
formatting
This commit is contained in:
parent
ffdc168026
commit
4fbb1c77e3
1 changed files with 1 additions and 3 deletions
|
@ -62,9 +62,7 @@ class Si4713Component : public PollingComponent, public i2c::I2CDevice {
|
|||
|
||||
bool send_cmd_(const CmdBase *cmd, size_t cmd_size, ResBase *res, size_t res_size);
|
||||
|
||||
template<typename CMD> bool send_cmd_(const CMD &cmd) {
|
||||
return this->send_cmd_(&cmd, sizeof(cmd), nullptr, 0);
|
||||
}
|
||||
template<typename CMD> bool send_cmd_(const CMD &cmd) { return this->send_cmd_(&cmd, sizeof(cmd), nullptr, 0); }
|
||||
|
||||
template<typename CMD, typename RES> bool send_cmd_(CMD cmd, RES &res) {
|
||||
return this->send_cmd_(&cmd, sizeof(cmd), &res, sizeof(res));
|
||||
|
|
Loading…
Reference in a new issue