Changeset 17921


Ignore:
Timestamp:
07/22/14 13:44:00 (10 years ago)
Author:
tbretz
Message:
Added a timeout for checkStates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/crateReset.js

    r17168 r17921  
    4545    // No data taking should be in progress
    4646    // Trigger must be switched off
    47 
    4847    checkSend(["MCP", "FAD_CONTROL", "FTM_CONTROL" ]);
    4948
     
    6564         [ "FAD_CONTROL", [ "Disengaged", "Disconnected", "Connecting", "Connected" ] ],
    6665        ];
    67     if (!checkStates(table))
     66    if (!checkStates(table, 3000, true))
    6867        throw new Error("Either MCP, FTM_CONTROL or FAD_CONTROL not in a state in which it ought to be.");
    6968
Note: See TracChangeset for help on using the changeset viewer.