From e3eb563d068f7825c0fa7b31df158ec6ed8aa042 Mon Sep 17 00:00:00 2001 From: Santiago Carot-Nemesio Date: Thu, 13 Oct 2011 17:29:22 +0200 Subject: [PATCH] Fix thermometer Intermediate property changes Set Intermediate property if intermediate temperature characteristic is supported --- thermometer/thermometer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c index d679fb85c..b4dad79cb 100644 --- a/thermometer/thermometer.c +++ b/thermometer/thermometer.c @@ -225,7 +225,8 @@ static void process_thermometer_char(struct characteristic *ch) GAttribResultFunc func; if (g_strcmp0(ch->attr.uuid, INTERMEDIATE_TEMPERATURE_UUID) == 0) { - /* TODO: Change intermediate property and emit signal */ + gboolean intermediate = TRUE; + change_property(ch->t, "Intermediate", &intermediate); return; } else if (g_strcmp0(ch->attr.uuid, TEMPERATURE_TYPE_UUID) == 0) func = read_temp_type_cb; -- 2.47.3