1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

adt7310: suppress cppcheck warning

This commit is contained in:
Oleg Hahm 2017-03-06 22:31:44 +01:00
parent 3a304f10ee
commit ced57f8497

View File

@ -218,6 +218,8 @@ float adt7310_read_float(adt7310_t *dev)
{
int16_t raw = adt7310_read_raw(dev);
if (raw == INT16_MIN) {
/* ignore cppcheck: we want to create a NaN here */
/* cppcheck-suppress duplicateExpression */
return (0.0f / 0.0f); /* return NaN */
}
if (!dev->high_res) {