[gnome-color-manager: 8/80] huey: the second byte seems to be the command again
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager: 8/80] huey: the second byte seems to be the command again
- Date: Mon, 19 Jul 2010 11:33:08 +0000 (UTC)
commit 47c79906e55badae8077baee1a68be7b7edaf957
Author: Richard Hughes <richard hughsie com>
Date: Sat Jul 17 22:40:17 2010 +0100
huey: the second byte seems to be the command again
src/gcm-huey-example.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-huey-example.c b/src/gcm-huey-example.c
index 63ced0f..03adfa6 100644
--- a/src/gcm-huey-example.c
+++ b/src/gcm-huey-example.c
@@ -167,6 +167,12 @@ if(1){
break;
}
+ /* the second byte seems to be the command again */
+ if (data[1] != command) {
+ g_set_error (error, 1, 0, "wrong command reply, got 0x%02x, expected 0x%02x", data[1], command);
+ goto out;
+ }
+
/* success */
ret = TRUE;
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]