Skip to content

Commit

Permalink
minor: when a double is expected, do not force to use float computati…
Browse files Browse the repository at this point in the history
…on by using a float literal
  • Loading branch information
obones committed Jan 9, 2023
1 parent 9d2a59a commit 4e3824b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/acurite.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ static int acurite_atlas_decode(r_device *decoder, bitbuffer_t *bitbuffer, unsig
/* clang-format off */
data = data_append(data,
"wind_dir_deg", NULL, DATA_FORMAT, "%.1f", DATA_DOUBLE, wind_dir,
"rain_in", "Rainfall Accumulation", DATA_FORMAT, "%.2f in", DATA_DOUBLE, raincounter * 0.01f,
"rain_in", "Rainfall Accumulation", DATA_FORMAT, "%.2f in", DATA_DOUBLE, raincounter * 0.01,
NULL);
/* clang-format on */
}
Expand Down

0 comments on commit 4e3824b

Please sign in to comment.