bug fix:temp in gui

This commit is contained in:
2019-10-30 13:58:37 +01:00
parent d05be2519a
commit 026771f42d
3 changed files with 53 additions and 57 deletions

View File

@ -3,8 +3,8 @@
#include <iostream>
qDacWidget::qDacWidget(QWidget *parent, sls::Detector *detector, bool d, std::string n, slsDetectorDefs::dacIndex i, bool t) :
QWidget(parent), det(detector), isDac(d), index(i), isMillideg(t) {
qDacWidget::qDacWidget(QWidget *parent, sls::Detector *detector, bool d, std::string n, slsDetectorDefs::dacIndex i) :
QWidget(parent), det(detector), isDac(d), index(i){
setupUi(this);
SetupWidgetWindow(n);
}
@ -74,9 +74,6 @@ void qDacWidget::GetAdc() {
if (retval == -1 && detectorIndex == -1) {
spinDac->setValue(-1);
} else {
if (isMillideg) {
retval /= 1000.00;
}
spinDac->setValue(retval);
}
} CATCH_DISPLAY (std::string("Could not get adc ") + std::to_string(index), "qDacWidget::GetAdc")