From 92c913eea1cff78156956ab07eb8c87e1246f28e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Tue, 10 Mar 2015 21:44:01 +0100 Subject: [PATCH] Fix temperature decoding for old ChemStation file format --- libhpcs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.43.5