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:
parent
3a304f10ee
commit
ced57f8497
@ -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…
Reference in New Issue
Block a user