Skip to content

Commit

Permalink
minor: Fix DATA_STRING should not have a DATA_FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Mar 11, 2024
1 parent 82f6332 commit ce30ff8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/devices/directv.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static int directv_decode(r_device *decoder, bitbuffer_t *bitbuffer)
"model", "", DATA_STRING, "DirecTV-RC66RX",
"id", "", DATA_FORMAT, "%06d", DATA_INT, dtv_device_id,
"button_id", "", DATA_FORMAT, "0x%02X", DATA_INT, dtv_button_id,
"button_name", "", DATA_FORMAT, "[%s]", DATA_STRING, get_dtv_button_label(dtv_button_id),
"button_name", "", DATA_STRING, get_dtv_button_label(dtv_button_id),
"event", "", DATA_STRING, row_sync_len > ROW_SYNC_SHORT_LEN ? "INITIAL" : "REPEAT",
"mic", "Integrity", DATA_STRING, "CHECKSUM",
NULL);
Expand Down
4 changes: 2 additions & 2 deletions src/devices/honeywell_wdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ static int honeywell_wdb_callback(r_device *decoder, bitbuffer_t *bitbuffer)
/* clang-format off */
data = data_make(
"model", "", DATA_STRING, "Honeywell-ActivLink",
"subtype", "Class", DATA_FORMAT, "%s", DATA_STRING, class,
"subtype", "Class", DATA_STRING, class,
"id", "Id", DATA_FORMAT, "%x", DATA_INT, device,
"battery_ok", "Battery", DATA_INT, !battery,
"alert", "Alert", DATA_FORMAT, "%s", DATA_STRING, alert,
"alert", "Alert", DATA_STRING, alert,
"secret_knock", "Secret Knock",DATA_FORMAT, "%d", DATA_INT, secret_knock,
"relay", "Relay", DATA_FORMAT, "%d", DATA_INT, relay,
"mic", "Integrity", DATA_STRING, "PARITY",
Expand Down
2 changes: 1 addition & 1 deletion src/devices/m_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ static int m_bus_decode_records(data_t *data, const uint8_t *b, uint8_t dif_codi
// Close sets bits 2 and 6 to 0
state = b[0]&0x44;
data = data_append(data,
"switch", "Switch", DATA_FORMAT, "%s", DATA_STRING, (state==0x44) ? "open":"closed",
"switch", "Switch", DATA_STRING, (state==0x44) ? "open":"closed",
NULL);
break;
case 0x3a:
Expand Down

0 comments on commit ce30ff8

Please sign in to comment.