mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +01:00
us020: make the state comparisons clearer
This commit is contained in:
parent
6cfe268ada
commit
af23a999ba
@ -98,7 +98,7 @@ func (d *US020) Distance() (float64, error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
if v != embd.Low {
|
||||
if v == embd.High {
|
||||
break
|
||||
}
|
||||
}
|
||||
@ -114,7 +114,7 @@ func (d *US020) Distance() (float64, error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
if v != embd.High {
|
||||
if v == embd.Low {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user