mirror of
https://github.com/esphome/esphome.git
synced 2025-03-01 00:08:15 +00:00
clang-format
This commit is contained in:
parent
17919fdf9a
commit
fa437896a1
@ -18,9 +18,7 @@ void ADCSensor::set_sample_count(uint8_t sample_count) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float ADCSensor::get_setup_priority() const {
|
float ADCSensor::get_setup_priority() const { return setup_priority::DATA; }
|
||||||
return setup_priority::DATA;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace adc
|
} // namespace adc
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
@ -50,9 +50,7 @@ float ADCSensor::sample() {
|
|||||||
return raw / 1024.0f;
|
return raw / 1024.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ADCSensor::unique_id() {
|
std::string ADCSensor::unique_id() { return get_mac_address() + "-adc"; }
|
||||||
return get_mac_address() + "-adc";
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace adc
|
} // namespace adc
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
Loading…
x
Reference in New Issue
Block a user