]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Fix temperature decoding for old ChemStation file format
authorMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 20:44:01 +0000 (21:44 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 20:44:01 +0000 (21:44 +0100)
libhpcs.c

index 24a567bde8c9df49de6c68499ab4001cd1ceaa05..5e1f57a0b7be1d4a07ee4848221e0be3e8bb4de8 100644 (file)
--- a/libhpcs.c
+++ b/libhpcs.c
@@ -173,9 +173,11 @@ enum HPCS_RetCode hpcs_read_file(const char* filename, struct HPCS_MeasuredData*
                pret = read_signal(datafile, &mdata->data, &mdata->data_count, guess_elec_sigstep(mdata), mdata->sampling_rate);
                break;
        case HPCS_TYPE_CE_PRESSURE:
-       case HPCS_TYPE_CE_TEMPERATURE:
                pret = read_signal(datafile, &mdata->data, &mdata->data_count, CE_WORK_PARAM_STEP, mdata->sampling_rate);
                break;
+       case HPCS_TYPE_CE_TEMPERATURE:
+               pret = read_signal(datafile, &mdata->data, &mdata->data_count, CE_WORK_PARAM_OLD_STEP * 10.0, mdata->sampling_rate);
+               break;
        case HPCS_TYPE_UNKNOWN:
                ret = HPCS_E_UNKNOWN_TYPE;
                goto out;