[gnome-color-manager: 27/80] huey: read the sensors in the right order
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager: 27/80] huey: read the sensors in the right order
- Date: Mon, 19 Jul 2010 11:34:43 +0000 (UTC)
commit 846d721c003459963024ae0a9a032114dd4fc026
Author: Richard Hughes <richard hughsie com>
Date: Sat Jul 17 22:50:50 2010 +0100
huey: read the sensors in the right order
I still need to parse the -complete.txt log to be able
to work out what the parameters to sensor-red-sample are.
src/gcm-huey-example.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/gcm-huey-example.c b/src/gcm-huey-example.c
index 1352536..2d1e65c 100644
--- a/src/gcm-huey-example.c
+++ b/src/gcm-huey-example.c
@@ -549,8 +549,7 @@ if (0) {
/* try to get color value */
if (1) {
guchar setup1[] = { 0x00, 0x9c, 0x00, 0xd9, 0x00, 0x56, 0x03 };
-// guchar setup2[] = { 0x00, 0x1e, 0x00, 0x27, 0x00, 0x15, 0x03 };
-// guchar payload[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+ guchar payload[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
g_warning ("moo");
ret = send_command (priv, HUEY_COMMAND_SENSOR_RED_SAMPLE, setup1, &error);
@@ -559,13 +558,8 @@ if (1) {
g_error_free (error);
goto out;
}
-// send_command (priv, 0x01, payload, &error);
-
-// send_command (priv, HUEY_COMMAND_SENSOR_RED_SAMPLE, setup1, &error);
-// send_command (priv, HUEY_COMMAND_SENSOR_BLUE, payload, &error);
-
-// send_command (priv, HUEY_COMMAND_SENSOR_RED_SAMPLE, setup2, &error);
-// send_command (priv, HUEY_COMMAND_SENSOR_GREEN, payload, &error);
+ send_command (priv, HUEY_COMMAND_SENSOR_BLUE, payload, &error);
+ send_command (priv, HUEY_COMMAND_SENSOR_GREEN, payload, &error);
g_warning ("moo");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]