summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-02-13 11:52:24 +0000
committerRichard Hughes <richard@hughsie.com>2011-02-22 10:51:57 +0000
commite79278244732bb69d51c947d4a770adbe43019fc (patch)
treec633742a777d134a25585a9d188cef8779db254f
parent7056040ed40f5599d7a0a096897d0dd472a81f0f (diff)
downloadgnome-color-manager-e79278244732bb69d51c947d4a770adbe43019fc.tar.gz
huey: trivially rename CALIB_VALUE to AMBIENT_CALIB_VALUE as it's only used for ambient correction
-rw-r--r--libcolor-glib/gcm-sensor-huey-private.h2
-rw-r--r--libcolor-glib/gcm-sensor-huey.c5
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;