18 lines
692 B
Diff
18 lines
692 B
Diff
diff --git a/epan/dissectors/packet-zbee-zcl-lighting.c b/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
index 2f8d880447..4757c272ce 100644
|
|
--- a/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
+++ b/epan/dissectors/packet-zbee-zcl-lighting.c
|
|
@@ -876,7 +876,11 @@ decode_color_xy(gchar *s, guint16 value)
|
|
static void
|
|
decode_color_temperature(gchar *s, guint16 value)
|
|
{
|
|
- g_snprintf(s, ITEM_LABEL_LENGTH, "%d [Mired] (%d [K])", value, 1000000/value);
|
|
+ if (value == 0) {
|
|
+ g_snprintf(s, ITEM_LABEL_LENGTH, "%u [Mired]", value);
|
|
+ } else {
|
|
+ g_snprintf(s, ITEM_LABEL_LENGTH, "%u [Mired] (%u [K])", value, 1000000/value);
|
|
+ }
|
|
return;
|
|
} /*decode_power_conf_voltage*/
|
|
|