Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Feb 10, 2024
1 parent 25efe2c commit 219a4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SensorTransmitter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ uint8_t encodeBresser7In1Payload(uint8_t *msg)
else if (ws.sensor[0].s_type == SENSOR_TYPE_HCHO_VOC)
{
snprintf(buf, 8, "%04u", ws.sensor[0].voc.hcho_ppb);
log_d("HCHO: %04u", ws.sensor[0].voc.hcho);
log_d("HCHO: %04u", ws.sensor[0].voc.hcho_ppb);
payload[4] = ((buf[0] - '0') << 4) | (buf[1] - '0');
payload[4] = ((buf[2] - '0') << 4) | (buf[3] - '0');
log_d("VOC: %u", ws.sensor[0].voc.voc_level);
Expand Down

0 comments on commit 219a4e5

Please sign in to comment.