mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-08 17:03:39 +00:00
lsmXXX: unified, error handling, memory management
This commit is contained in:
@@ -41,7 +41,7 @@ func main() {
|
||||
|
||||
for {
|
||||
|
||||
if con, err := device.Connected(); !con || err != nil {
|
||||
if !device.Connected() {
|
||||
println("LSM9DS1 not connected")
|
||||
time.Sleep(time.Second)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user