mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 12:30:28 +02:00
Configure clang-format for consistent pointer alignment (#1890)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
namespace esphome {
|
||||
namespace max31865 {
|
||||
|
||||
static const char* TAG = "max31865";
|
||||
static const char *TAG = "max31865";
|
||||
|
||||
void MAX31865Sensor::update() {
|
||||
// Check new faults since last measurement
|
||||
@@ -176,7 +176,7 @@ const uint16_t MAX31865Sensor::read_register_16_(uint8_t reg) {
|
||||
return value;
|
||||
}
|
||||
|
||||
float MAX31865Sensor::calc_temperature_(const float& rtd_ratio) {
|
||||
float MAX31865Sensor::calc_temperature_(const float &rtd_ratio) {
|
||||
// Based loosely on Adafruit's library: https://github.com/adafruit/Adafruit_MAX31865
|
||||
// Mainly based on formulas provided by Analog:
|
||||
// http://www.analog.com/media/en/technical-documentation/application-notes/AN709_0.pdf
|
||||
|
||||
@@ -51,7 +51,7 @@ class MAX31865Sensor : public sensor::Sensor,
|
||||
void write_register_(uint8_t reg, uint8_t value);
|
||||
const uint8_t read_register_(uint8_t reg);
|
||||
const uint16_t read_register_16_(uint8_t reg);
|
||||
float calc_temperature_(const float& rtd_ratio);
|
||||
float calc_temperature_(const float &rtd_ratio);
|
||||
};
|
||||
|
||||
} // namespace max31865
|
||||
|
||||
Reference in New Issue
Block a user