From: Michal MalĂ˝ Date: Tue, 10 Mar 2015 20:44:01 +0000 (+0100) Subject: Fix temperature decoding for old ChemStation file format X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=92c913eea1cff78156956ab07eb8c87e1246f28e;p=libHPCS.git Fix temperature decoding for old ChemStation file format --- diff --git a/libhpcs.c b/libhpcs.c index 24a567b..5e1f57a 100644 --- 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;