Fix: double strobe
This commit is contained in:
@ -152,8 +152,10 @@ func (d *mt12232a) readByte(cd, cs rpio.State) (byte, error) {
|
||||
|
||||
// Wait, checking status byte
|
||||
func (d *mt12232a) waitReady(cs rpio.State) error {
|
||||
d.pinCS.Write(cs) // Select cristals
|
||||
return d.dev.WaitReady()
|
||||
// d.pinCS.Write(cs) // Select cristals
|
||||
// return d.dev.WaitReady()
|
||||
time.Sleep(time.Microsecond)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *mt12232a) ReadStatus(cs rpio.State) byte {
|
||||
|
Reference in New Issue
Block a user