Fix for test

master
Friedl Ulrich 10 years ago
parent 876ec5e62c
commit da1d06618f

@ -106,6 +106,7 @@ func (r *Device) setup() error {
//pinMode(_slaveSelectPin, OUTPUT)
//SPI.begin()
log.Println("start setup")
for data, err := r.readReg(REG_SYNCVALUE1); err == nil && data != 0xAA; data, err = r.readReg(REG_SYNCVALUE1) {
err := r.writeReg(REG_SYNCVALUE1, 0xAA)
if err != nil {

Loading…
Cancel
Save