Closed x29a closed 1 year ago
otherwise -Wtype-limits (e.g. Arduino IDE) generates warnings like:
warning: comparison is always false due to limited range of data type [-Wtype-limits]
uint16_t range is from 0 to 65536 so when passing any other value, the type conversion should happen beforehand and the check is not needed again.
otherwise -Wtype-limits (e.g. Arduino IDE) generates warnings like:
uint16_t range is from 0 to 65536 so when passing any other value, the type conversion should happen beforehand and the check is not needed again.