Skip to content

Commit

Permalink
Fix JSON identifier syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ascillato committed Nov 8, 2018
1 parent 3332ab0 commit 0b7932f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonoff/xsns_14_sht3x.ino
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void Sht3xShow(boolean json)

dtostrfd(t, Settings.flag2.temperature_resolution, temperature);
dtostrfd(h, Settings.flag2.humidity_resolution, humidity);
snprintf_P(types, sizeof(types), PSTR("%s-0x%02X"), sht3x_sensors[i].types, sht3x_sensors[i].address); // "SHT3X-0xXX"
snprintf_P(types, sizeof(types), PSTR("%s_0x%02X"), sht3x_sensors[i].types, sht3x_sensors[i].address); // "SHT3X-0xXX"

if (json) {
snprintf_P(mqtt_data, sizeof(mqtt_data), JSON_SNS_TEMPHUM, mqtt_data, types, temperature, humidity);
Expand Down

0 comments on commit 0b7932f

Please sign in to comment.