From 9a669d83b9ed88d6668b8d315834884e640165cb Mon Sep 17 00:00:00 2001 From: Audrius Paskevicius <42367604+audrius-paskevicius@users.noreply.github.com> Date: Fri, 30 Apr 2021 16:46:25 +0200 Subject: [PATCH] Update ds248x_test.go --- ds248x/ds248x_test.go | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/ds248x/ds248x_test.go b/ds248x/ds248x_test.go index 79df2b1..b560d8f 100644 --- a/ds248x/ds248x_test.go +++ b/ds248x/ds248x_test.go @@ -18,7 +18,9 @@ func TestNew(t *testing.T) { {Addr: 0x18, W: []byte{0xe1, 0xf0}, R: []byte{0x18}}, {Addr: 0x18, W: []byte{0xd2, 0xe1}, R: []byte{0x1}}, {Addr: 0x18, W: []byte{0xe1, 0xb4}}, - {Addr: 0x18, W: []byte{0xc3, 0x6, 0x26, 0x46, 0x66, 0x86}}, + // {Addr: 0x18, W: []byte{0xe1, 0xd2}}, // (DS2482-800) + // {Addr: 0x18, W: []byte{0xc3, 0xf0}}, // (DS2482-800) + {Addr: 0x18, W: []byte{0xc3, 0x6, 0x26, 0x46, 0x66, 0x86}}, // (DS2483) }, } d, err := New(&bus, 0x18, &DefaultOpts) @@ -36,24 +38,6 @@ func TestNew(t *testing.T) { } } -func TestNew_opts(t *testing.T) { - bus := i2ctest.Playback{ - Ops: []i2ctest.IO{ - {Addr: 0x18, W: []byte{0xf0}}, - {Addr: 0x18, W: []byte{0xe1, 0xf0}, R: []byte{0x18}}, - {Addr: 0x18, W: []byte{0xd2, 0xe1}, R: []byte{0x1}}, - {Addr: 0x18, W: []byte{0xe1, 0xb4}}, - {Addr: 0x18, W: []byte{0xc3, 0x6, 0x26, 0x46, 0x66, 0x86}}, - }, - } - if _, err := New(&bus, 0x18, &DefaultOpts); err != nil { - t.Fatal(err) - } - if err := bus.Close(); err != nil { - t.Fatal(err) - } -} - func init() { sleep = func(time.Duration) {} }