Changeset 11762 for trunk


Ignore:
Timestamp:
08/03/11 19:58:31 (13 years ago)
Author:
tbretz
Message:
Sanity check for fInHandler when sending new light pulser intensity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/MainWindow.cc

    r11707 r11762  
    522522void MainWindow::on_fLpIntIntensity_valueChanged(int val)
    523523{
    524     Dim::SendCommand("FTM_CONTROL/SET_INTENSITY_LPINT", uint16_t(val));
     524    if (!fInHandler)
     525        Dim::SendCommand("FTM_CONTROL/SET_INTENSITY_LPINT", uint16_t(val));
    525526}
    526527
    527528void MainWindow::on_fLpExtIntensity_valueChanged(int val)
    528529{
    529     Dim::SendCommand("FTM_CONTROL/SET_INTENSITY_LPEXT", uint16_t(val));
     530    if (!fInHandler)
     531        Dim::SendCommand("FTM_CONTROL/SET_INTENSITY_LPEXT", uint16_t(val));
    530532}
    531533
Note: See TracChangeset for help on using the changeset viewer.