mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-28 23:58:40 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d01d85930d | |||
| ac821d8295 |
+1
-1
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// Version of TinyGo.
|
||||
// Update this value before release of new version of software.
|
||||
const Version = "0.28.0-dev"
|
||||
const Version = "0.28.1"
|
||||
|
||||
var (
|
||||
// This variable is set at build time using -ldflags parameters.
|
||||
|
||||
@@ -368,6 +368,9 @@ func (spi SPI) rx(rx []byte, txrepeat byte) error {
|
||||
continue
|
||||
}
|
||||
}
|
||||
for spi.isBusy() {
|
||||
gosched()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -397,6 +400,8 @@ func (spi SPI) txrx(tx, rx []byte) error {
|
||||
// Transaction ended early due to timeout
|
||||
return ErrSPITimeout
|
||||
}
|
||||
|
||||
for spi.isBusy() {
|
||||
gosched()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user