All of lore.kernel.org
 help / color / mirror / Atom feed
From: chen.ganir@ti.com
To: linux-bluetooth@vger.kernel.org
Cc: Chen Ganir <chen.ganir@ti.com>
Subject: [PATCH 4/5] Fix device version in GetProperties
Date: Mon, 26 Mar 2012 14:45:27 +0200	[thread overview]
Message-ID: <1332765928-6251-5-git-send-email-chen.ganir@ti.com> (raw)
In-Reply-To: <1332765928-6251-1-git-send-email-chen.ganir@ti.com>

From: Chen Ganir <chen.ganir@ti.com>

Fix how device version is added to the property dictionay.
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.c b/src/device.c
index eab7e4c..3b772ee 100644
--- a/src/device.c
+++ b/src/device.c
@@ -383,7 +383,7 @@ static DBusMessage *get_properties(DBusConnection *conn,
 							&device->product);
 
 	/* Version */
-	if (device->product)
+	if (device->version)
 		dict_append_entry(&dict, "Version", DBUS_TYPE_UINT16,
 							&device->version);
 
-- 
1.7.4.1


  parent reply	other threads:[~2012-03-26 12:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26 12:45 [PATCH 0/5] Add DeviceInformationService plugin chen.ganir
2012-03-26 12:45 ` [PATCH 1/5] Add DeviceInformation GATT Client chen.ganir
2012-03-26 12:45 ` [PATCH 2/5] DeviceInfo: Add connection logic chen.ganir
2012-03-26 12:45 ` [PATCH 3/5] DeviceInfo: Discover Characteristics chen.ganir
2012-03-26 14:29   ` Anderson Lizardo
2012-03-26 12:45 ` chen.ganir [this message]
2012-03-26 12:45 ` [PATCH 5/5] DeviceInfo: Read PNP ID chen.ganir
2012-03-26 15:09 ` [PATCH 0/5] Add DeviceInformationService plugin Anderson Lizardo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1332765928-6251-5-git-send-email-chen.ganir@ti.com \
    --to=chen.ganir@ti.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.