From faf7e0db8259bc8df4cccfc3f2f95c1515de07c9 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 18 Apr 2019 15:09:36 +0200 Subject: [PATCH] fix --- python/src/Detector.h | 2 +- python/src/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/Detector.h b/python/src/Detector.h index ae62149d8..4833772ed 100755 --- a/python/src/Detector.h +++ b/python/src/Detector.h @@ -275,7 +275,7 @@ class Detector { } uint64_t getPatternWaitTime(int level, int detPos){ - det.setPatternWaitTime(level, -1, detPos); + return det.setPatternWaitTime(level, -1, detPos); } bool getFlippedDataX(int i) { diff --git a/python/src/main.cpp b/python/src/main.cpp index c129330d8..4b67a1aa0 100755 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -289,6 +289,7 @@ PYBIND11_MODULE(_sls_detector, m) { .def("setPatternWaitTime", &Detector::setPatternWaitTime, py::arg("level"), py::arg("duration"), py::arg("det_id") = -1) + .def("getPatternWaitTime", &Detector::getPatternWaitTime, py::arg("level"), py::arg("det_id") = -1)