From 632a4b65b660503482285d071be5448cc54f6741 Mon Sep 17 00:00:00 2001 From: bezineb5 Date: Sun, 2 Oct 2022 22:04:24 +0200 Subject: [PATCH] Added i2c address in name --- tlv493d/tlv493d.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlv493d/tlv493d.go b/tlv493d/tlv493d.go index 51217fe..f931e27 100644 --- a/tlv493d/tlv493d.go +++ b/tlv493d/tlv493d.go @@ -194,7 +194,7 @@ func New(i i2c.Bus, opts *Opts) (*Dev, error) { // String implements conn.Resource. func (d *Dev) String() string { - return "TLV493D" + return fmt.Sprintf("TLV493D{i2c:0x%x}", d.i2c.Addr) } // Halt implements conn.Resource.