mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 15:41:52 +00:00
revert
This commit is contained in:
@@ -28,6 +28,8 @@ static const uint8_t MCP9600_REGISTER_ALERT4_LIMIT = 0x13;
|
||||
static const uint8_t MCP9600_REGISTER_DEVICE_ID = 0x20;
|
||||
|
||||
void MCP9600Component::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Running setup");
|
||||
|
||||
uint16_t dev_id = 0;
|
||||
this->read_byte_16(MCP9600_REGISTER_DEVICE_ID, &dev_id);
|
||||
this->device_id_ = (uint8_t) (dev_id >> 8);
|
||||
|
||||
Reference in New Issue
Block a user