Closed ErickSimoes closed 7 years ago
The method can be simplified if the constants CM and INC represent the divisors, like this:
unsigned int Ultrasonic::distanceRead(uint8_t divisor) { return timing() / divisor / 2; }
The method can be simplified if the constants CM and INC represent the divisors, like this: