changeset 238:04c98657d057

finish the patch on get_light_state
author Louis Opter <kalessin@kalessin.fr>
date Sun, 09 Aug 2015 16:00:18 -0700
parents fec9ee97f40f
children 889a4157359e
files fallback_on_device_addr_when_label.patch series
diffstat 2 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/fallback_on_device_addr_when_label.patch	Sun Aug 09 03:39:25 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# HG changeset patch
-# Parent  f31af55210fe791d198fc5a25525dc994ad3be3b
-Return the bulb address in get_light_state if a bulb label is empty
-
-diff --git a/core/proto.c b/core/proto.c
---- a/core/proto.c
-+++ b/core/proto.c
-@@ -222,7 +222,7 @@
-             buf, sizeof(buf), state_fmt,
-             h, s, b, bulb->state.kelvin,
-             bulb->state.power == LGTD_LIFX_POWER_ON ? "true" : "false",
--            bulb->state.label
-+            bulb->state.label[0] ? bulb->state.label : lgtd_addrtoa(bulb->addr)
-         );
-         if (written >= (int)sizeof(buf)) {
-             lgtd_warnx(
--- a/series	Sun Aug 09 03:39:25 2015 -0700
+++ b/series	Sun Aug 09 16:00:18 2015 -0700
@@ -1,3 +1,2 @@
 implement_some_metadata_packet_types.h
-fallback_on_device_addr_when_label.patch
 use_jq_when_avalaible.patch