skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
375 stars 144 forks source link

Chore: Add component tagging to i2c errors #551

Open mutatrum opened 9 hours ago

mutatrum commented 9 hours ago

If there's a problem with i2c, it throws errors but it's unclear for which device this is. Errors should be annotated by the device id or even better, device tag.

mutatrum commented 9 hours ago
E (8014) i2c.master: s_i2c_synchronous_transaction(880): I2C transaction failed
E (8014) i2c.master: i2c_master_transmit_receive(1118): I2C transaction failed
E (10024) i2c.master: I2C transaction unexpected nack detected
E (10024) i2c.master: s_i2c_synchronous_transaction(880): I2C transaction failed
E (10024) i2c.master: i2c_master_transmit_receive(1118): I2C transaction failed
E (12034) i2c.master: I2C transaction unexpected nack detected
E (12034) i2c.master: s_i2c_synchronous_transaction(880): I2C transaction failed
E (12034) i2c.master: i2c_master_transmit_receive(1118): I2C transaction failed