On Thu, Sep 29, 2011, Santiago Carot-Nemesio wrote: > @@ -113,7 +120,29 @@ static void discover_desc_cb(guint8 status, const guint8 *pdu, guint16 len, > static void read_temp_type_cb(guint8 status, const guint8 *pdu, guint16 len, > gpointer user_data) > { > - /* TODO */ > + struct characteristic *ch = user_data; > + struct thermometer *t = ch->t; > + uint8_t value[ATT_MAX_MTU]; > + int vlen; > + > + if (status != 0) { This is correct. So why did you have "if (status)" in the previous patch? > + t->type = (uint8_t) value[0]; This looks like an unnecessary explicit type-cast. The array is already of type uint8_t. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html