namespace JSBSim {
-static const char *IdSrc = "$Id: FGSwitch.cpp,v 1.21 2011/06/16 03:39:38 jberndt Exp $";
+static const char *IdSrc = "$Id: FGSwitch.cpp,v 1.22 2011/06/17 12:12:19 jberndt Exp $";
static const char *IdHdr = ID_SWITCH;
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tests.push_back(current_test);
}
- if (test_element->GetName() != "output"
- && test_element->GetName() != "description") { // this is not an output element
+ string el_name = test_element->GetName();
+ if ( el_name != "output"
+ && el_name != "description"
+ && el_name != "delay" )
+ {
value = test_element->GetAttributeValue("value");
if (value.empty()) {
cerr << "No VALUE supplied for switch component: " << Name << endl;