Update Trinket_Ultrasonic_Rangefinder.ino
Error in and operation
This commit is contained in:
parent
243195aeb5
commit
658951bc8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue