[gnome-color-manager/colord] huey: trivially rename CALIB_VALUE to AMBIENT_CALIB_VALUE as it's only used for ambient correction
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord] huey: trivially rename CALIB_VALUE to AMBIENT_CALIB_VALUE as it's only used for ambient correction
- Date: Sun, 13 Feb 2011 13:15:16 +0000 (UTC)
commit 6de830fc51149da9a24310f5a2c70af8c0b1435f
Author: Richard Hughes <richard hughsie com>
Date: Sun Feb 13 11:52:24 2011 +0000
huey: trivially rename CALIB_VALUE to AMBIENT_CALIB_VALUE as it's only used for ambient correction
src/gcm-sensor-huey-private.h | 2 +-
src/gcm-sensor-huey.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-sensor-huey-private.h b/src/gcm-sensor-huey-private.h
index cd67e9f..47a01ad 100644
--- a/src/gcm-sensor-huey-private.h
+++ b/src/gcm-sensor-huey-private.h
@@ -292,7 +292,7 @@ G_BEGIN_DECLS
#define GCM_SENSOR_HUEY_EEPROM_ADDR_CALIBRATION_TIME_CRT 0x5a /* 4 bytes */
#define GCM_SENSOR_HUEY_EEPROM_ADDR_DARK_OFFSET 0x67 /* 12 bytes */
#define GCM_SENSOR_HUEY_EEPROM_ADDR_UNLOCK 0x7a /* 5 bytes */
-#define GCM_SENSOR_HUEY_EEPROM_ADDR_CALIB_VALUE 0x94 /* 4 bytes */
+#define GCM_SENSOR_HUEY_EEPROM_ADDR_AMBIENT_CALIB_VALUE 0x94 /* 4 bytes */
const gchar *gcm_sensor_huey_return_code_to_string (guchar value);
const gchar *gcm_sensor_huey_command_code_to_string (guchar value);
diff --git a/src/gcm-sensor-huey.c b/src/gcm-sensor-huey.c
index b768d30..f14160e 100644
--- a/src/gcm-sensor-huey.c
+++ b/src/gcm-sensor-huey.c
@@ -858,8 +858,9 @@ gcm_sensor_huey_startup (GcmSensor *sensor, GError **error)
/* this number is different on all three hueys */
ret = gcm_sensor_huey_read_register_float (sensor_huey,
- GCM_SENSOR_HUEY_EEPROM_ADDR_CALIB_VALUE,
- &priv->calibration_value, error);
+ GCM_SENSOR_HUEY_EEPROM_ADDR_AMBIENT_CALIB_VALUE,
+ &priv->calibration_value,
+ error);
if (!ret)
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]