remove unused API

This commit is contained in:
soypat
2024-01-15 01:51:22 -03:00
parent 677f8ed297
commit 45e207fe2e
3 changed files with 7 additions and 57 deletions
-17
View File
@@ -84,23 +84,6 @@ func makeResponseError(status response1) error {
}
}
// func (c *SPICard) lastR1() r1 { return c.lastr1 }
// is part of specification but not used in every implementation out there...
func (d *SPICard) readR1() (resp r1, err error) {
first, ok := d.waitToken(d.timeout, 0xff)
if !ok {
return resp, errBusyTimeout
}
err = d.bus.Tx(nil, d.buf[1:6])
if err != nil {
return resp, err
}
d.buf[0] = first
copy(resp.data[:], d.buf[:6])
return resp, nil
}
// Commands used to help generate this file:
// - stringer -type=state -trimprefix=state -output=state_string.go
// - stringer -type=status -trimprefix=status -output=status_string.go