[gnome-color-manager] 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] huey: trivially rename CALIB_VALUE to AMBIENT_CALIB_VALUE as it's only used for ambient correction
- Date: Tue, 22 Feb 2011 10:53:07 +0000 (UTC)
commit e79278244732bb69d51c947d4a770adbe43019fc
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
libcolor-glib/gcm-sensor-huey-private.h | 2 +-
libcolor-glib/gcm-sensor-huey.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libcolor-glib/gcm-sensor-huey-private.h b/libcolor-glib/gcm-sensor-huey-private.h
index fb689d5..e5d5c64 100644
--- a/libcolor-glib/gcm-sensor-huey-private.h
+++ b/libcolor-glib/gcm-sensor-huey-private.h
@@ -296,7 +296,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/libcolor-glib/gcm-sensor-huey.c b/libcolor-glib/gcm-sensor-huey.c
index 42f75cb..3fa83f6 100644
--- a/libcolor-glib/gcm-sensor-huey.c
+++ b/libcolor-glib/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]