1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 21:53:48 +00:00

Streamline setup() logging (g, h, i) (#8927)

This commit is contained in:
Keith Burzinski
2025-05-28 13:55:02 -05:00
committed by GitHub
parent 18653f8f69
commit 0ce03ae26b
29 changed files with 34 additions and 35 deletions

View File

@@ -34,7 +34,7 @@ static const uint8_t INA219_REGISTER_CURRENT = 0x04;
static const uint8_t INA219_REGISTER_CALIBRATION = 0x05;
void INA219Component::setup() {
ESP_LOGCONFIG(TAG, "Setting up INA219...");
ESP_LOGCONFIG(TAG, "Running setup");
// Config Register
// 0bx000000000000000 << 15 RESET Bit (1 -> trigger reset)
if (!this->write_byte_16(INA219_REGISTER_CONFIG, 0x8000)) {