us020: make the state comparisons clearer

This commit is contained in:
Kunal Powar 2014-04-05 01:45:11 +05:30
parent 6cfe268ada
commit af23a999ba
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}