From fab688a701c2218cb6b10504c94dab7e7e939f96 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 21 Nov 2025 13:57:39 +0100 Subject: [PATCH] scd4x: remove dead code --- scd4x/scd4x.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scd4x/scd4x.go b/scd4x/scd4x.go index 9b89e47..68c5e50 100644 --- a/scd4x/scd4x.go +++ b/scd4x/scd4x.go @@ -185,13 +185,6 @@ func (d *Device) sendCommand(command uint16) error { return d.bus.Tx(uint16(d.Address), d.tx[0:2], nil) } -func (d *Device) sendCommandWithValue(command, value uint16) error { - binary.BigEndian.PutUint16(d.tx[0:], command) - binary.BigEndian.PutUint16(d.tx[2:], value) - d.tx[4] = crc8(d.tx[2:4]) - return d.bus.Tx(uint16(d.Address), d.tx[0:5], nil) -} - func (d *Device) sendCommandWithResult(command uint16, result []byte) error { binary.BigEndian.PutUint16(d.tx[0:], command) if err := d.bus.Tx(uint16(d.Address), d.tx[0:2], nil); err != nil {