Skip to content

Commit

Permalink
move the mic field to the end of the list, per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
triplepoint committed Aug 12, 2023
1 parent ddc0524 commit c23f4db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/inkbird_ith20r.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ static int inkbird_ith20r_callback(r_device *decoder, bitbuffer_t *bitbuffer)
"id", "", DATA_INT, sensor_id,
"battery_ok", "Battery", DATA_FORMAT, "%.1f %%", DATA_DOUBLE, battery,
"sensor_num", "", DATA_INT, sensor_num,
"mic", "Integrity", DATA_STRING, "CRC",
"temperature_C", "Temperature", DATA_FORMAT, "%.1f C", DATA_DOUBLE, temperature,
"temperature_2_C", "Temperature2", DATA_FORMAT, "%.1f C", DATA_DOUBLE, temperature_ext,
"humidity", "Humidity", DATA_FORMAT, "%.1f %%", DATA_DOUBLE, humidity,
"mic", "Integrity", DATA_STRING, "CRC",
NULL);
/* clang-format on */

Expand All @@ -133,10 +133,10 @@ static char const *const output_fields[] = {
"id",
"battery",
"sensor_num",
"mic",
"temperature_C",
"temperature_2_C",
"humidity",
"mic",
NULL,
};

Expand Down

0 comments on commit c23f4db

Please sign in to comment.