diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-30 17:09:09 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-30 17:09:09 +0100 |
commit | 06fa21c98c0c13fd4d93404bdef8314ab8c00d92 (patch) | |
tree | c1c05490230661864303ad91f9c466485cb7a97d | |
parent | 766babb5a9bcb6ec414565c9166d7533f6816b7c (diff) | |
download | colord-06fa21c98c0c13fd4d93404bdef8314ab8c00d92.tar.gz |
trivial: Don't apply the CCD cal when getting the spectrum
-rw-r--r-- | lib/colorhug/ch-device.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/colorhug/ch-device.c b/lib/colorhug/ch-device.c index 362f7c6..0deed3e 100644 --- a/lib/colorhug/ch-device.c +++ b/lib/colorhug/ch-device.c @@ -2243,9 +2243,6 @@ ch_device_take_reading_xyz (GUsbDevice *device, guint16 calibration_idx, * Gets the spectrum from the device. This queries the device multiple times * until the spectrum has been populated. * - * The spectrum is also set up with the correct start and wavelength - * calibration coefficients. - * * Returns: a #CdSpectrum, or %NULL for error * * Since: 1.3.1 @@ -2254,7 +2251,6 @@ CdSpectrum * ch_device_get_spectrum (GUsbDevice *device, GCancellable *cancellable, GError **error) { gboolean ret; - gdouble cal[4]; gint32 buf[CH_EP0_TRANSFER_SIZE / sizeof(gint32)]; gsize actual_length; guint16 i; @@ -2311,14 +2307,6 @@ ch_device_get_spectrum (GUsbDevice *device, GCancellable *cancellable, GError ** if (!ch_device_check_status (device, cancellable, error)) return NULL; - /* add the coefficients */ - if (!ch_device_get_ccd_calibration (device, - &cal[0], &cal[1], &cal[2], &cal[3], - cancellable, error)) - return NULL; - cd_spectrum_set_start (sp, cal[0]); - cd_spectrum_set_wavelength_cal (sp, cal[1], cal[2], cal[3]); - /* return copy */ return cd_spectrum_dup (sp); } |