mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
l3gd20: sends data as often as we get it from the sensor
This commit is contained in:
parent
b96018021e
commit
d1e0e00ff7
2 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,7 @@ func (d *L3GD20) Start() (err error) {
|
|||
}
|
||||
oldTime = currTime
|
||||
case orientations <- Orientation{x, y, z}:
|
||||
orientations = nil
|
||||
case waitc := <-d.closing:
|
||||
waitc <- struct{}{}
|
||||
close(d.orientations)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue