Update Trinket_Ultrasonic_Rangefinder.ino

Error in and operation
This commit is contained in:
Anne Barela 2022-01-10 19:52:12 -05:00 committed by GitHub
parent 243195aeb5
commit 658951bc8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ uint16_t mode(uint16_t *x,int n){
count++;
i++;
}
if( count > prevCount & count > maxCount) {
if( count > prevCount && count > maxCount) {
mode=x[i];
maxCount=count;
bimodal=0;