1
0
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:
Kunal Powar 2014-04-05 01:45:11 +05:30
parent 6cfe268ada
commit af23a999ba

View File

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