Skip to content

Commit 658951b

Browse files
authored
Update Trinket_Ultrasonic_Rangefinder.ino
Error in and operation
1 parent 243195a commit 658951b

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)