Skip to content

Commit e765489

Browse files
authored
Fix verbose log message by adding 0x prefix for ID (#298)
1 parent 4344682 commit e765489

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/BresserWeatherSensorMQTTCustom/src/WeatherSensorDecoders.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
// 20250129 Minor change in SENSOR_TYPE_WEATHER8 handling
5555
// 20260224 Removed obsolete variable f_3in1 and related code in decodeBresser6In1Payload()
5656
// Fixed High Precision Thermo Hygro Sensor (P/N 7009971) in decodeBresser6In1Payload()
57+
// 20260306 Added missing 0x prefix for ID in verbose log message
5758
//
5859
// ToDo:
5960
// -
@@ -68,7 +69,7 @@
6869
//
6970
int WeatherSensor::findSlot(uint32_t id, DecodeStatus *status)
7071
{
71-
log_v("find_slot(): ID=%08X", id);
72+
log_v("find_slot(): ID=0x%08X", id);
7273

7374
// Skip sensors from exclude-list (if any)
7475
for (const uint32_t &exc : sensor_ids_exc)

src/WeatherSensorDecoders.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
// 20250129 Minor change in SENSOR_TYPE_WEATHER8 handling
5555
// 20260224 Removed obsolete variable f_3in1 and related code in decodeBresser6In1Payload()
5656
// Fixed High Precision Thermo Hygro Sensor (P/N 7009971) in decodeBresser6In1Payload()
57+
// 20260306 Added missing 0x prefix for ID in verbose log message
5758
//
5859
// ToDo:
5960
// -
@@ -68,7 +69,7 @@
6869
//
6970
int WeatherSensor::findSlot(uint32_t id, DecodeStatus *status)
7071
{
71-
log_v("find_slot(): ID=%08X", id);
72+
log_v("find_slot(): ID=0x%08X", id);
7273

7374
// Skip sensors from exclude-list (if any)
7475
for (const uint32_t &exc : sensor_ids_exc)

0 commit comments

Comments
 (0)