diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-09-09 11:20:17 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-09-09 11:20:17 -0500 |
commit | d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8 (patch) | |
tree | c028f598db4a1ca1534452dc993eeb3b69dd00f4 | |
parent | 205dc2bbbc12b40bc361c162c472591d5df18137 (diff) | |
download | sddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.tar.gz sddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.tar.bz2 sddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.zip |
reset the PMT_FLAG_CHARGE bit in get_event()
-rw-r--r-- | src/zdab_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zdab_utils.c b/src/zdab_utils.c index 41be1c6..7c3d2ae 100644 --- a/src/zdab_utils.c +++ b/src/zdab_utils.c @@ -151,6 +151,9 @@ int get_event(zebraFile *f, event *ev, zebraBank *bev) /* Clear the PMT_FLAG_DIS bit. */ ev->pmt_hits[id].flags &= ~PMT_FLAG_DIS; + /* Clear the PMT_FLAG_CHARGE bit. */ + ev->pmt_hits[id].flags &= ~PMT_FLAG_CHARGE; + /* Make sure we have good calibrations. Technically, we should only * have to check the KPF_DIS bit since according to the SNOMAN * docs: |