]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Fix decoding of current and power for the older ChemStation file format
authorMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 20:37:26 +0000 (21:37 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 20:37:26 +0000 (21:37 +0100)
libhpcs.c
libhpcs_p.h

index 302dc440525ec706077610b82e4d0df129101197..24a567bde8c9df49de6c68499ab4001cd1ceaa05 100644 (file)
--- a/libhpcs.c
+++ b/libhpcs.c
@@ -242,7 +242,7 @@ static HPCS_step guess_current_step(const struct HPCS_MeasuredData* mdata)
        if (strcmp(mdata->cs_ver, CHEMSTAT_VER_B0625) == 0)
                return CE_CURRENT_STEP;
 
-       return CE_WORK_PARAM_STEP;
+       return CE_WORK_PARAM_OLD_STEP * 10.0;
 }
 
 static HPCS_step guess_elec_sigstep(const struct HPCS_MeasuredData* mdata)
index f9e6d4cb7b2957fbf46e877798ac1e4338fa21e7..f0b4b6b610a91123649a7e0658759512ead490a6 100644 (file)
@@ -68,7 +68,7 @@ const char* MON_DEC_STR = "Dec";
 const HPCS_step CE_CURRENT_STEP = 0.01;
 const HPCS_step CE_CCD_STEP = 0.0000596046450027643;
 const HPCS_step CE_DAD_STEP = 0.000476837158203;
-const HPCS_step CE_ENERGY_STEP = 0.0000055555555;
+const HPCS_step CE_ENERGY_STEP = 0.00000459365687208207;
 const HPCS_step CE_WORK_PARAM_STEP = 0.001;
 const HPCS_step CE_WORK_PARAM_OLD_STEP = 0.000083333333;