mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
us020: make the state comparisons clearer
This commit is contained in:
parent
6cfe268ada
commit
af23a999ba
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue