Skip to content

Commit e4a7a68

Browse files
authored
Merge pull request #1967 from adafruit/TheKitty-patch-5
Update Trinket_Ultrasonic_Rangefinder.ino
2 parents 243195a + 658951b commit e4a7a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Trinket_Ultrasonic_Rangefinder/Trinket_Ultrasonic_Rangefinder.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uint16_t mode(uint16_t *x,int n){
100100
count++;
101101
i++;
102102
}
103-
if( count > prevCount & count > maxCount) {
103+
if( count > prevCount && count > maxCount) {
104104
mode=x[i];
105105
maxCount=count;
106106
bimodal=0;

0 commit comments

Comments
 (0)