Seeed-Studio / Seeed_Arduino_DopplerRadar

Arduino library for DopplerRader
MIT License
3 stars 6 forks source link

remove checks that always evaluate to false due to range of uint16_t #7

Closed x29a closed 1 year ago

x29a commented 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.