mirror of
https://github.com/kidoman/embd
synced 2024-12-22 12:50:19 +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
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if v != embd.Low {
|
if v == embd.High {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,7 +114,7 @@ func (d *US020) Distance() (float64, error) {
|
|||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if v != embd.High {
|
if v == embd.Low {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user