Browse Source

adt7310: suppress cppcheck warning

master
Oleg Hahm 6 years ago
parent
commit
ced57f8497
  1. 2
      drivers/adt7310/adt7310.c

2
drivers/adt7310/adt7310.c

@ -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) {

Loading…
Cancel
Save