33 |
|
if( legNumber!=0 ) stringConverter << "leg" << legNumber; // For triggers with only one leg I don't want to prefix anything. |
34 |
|
|
35 |
|
stringConverter << "threshold" << thresholdNumber; |
36 |
+ |
|
37 |
|
trigger.parameter(stringConverter.str()); |
38 |
|
// If the threshold doesn't exist the statement above will throw an exception, so |
39 |
|
// I've reached this far then the threshold name must exist. |
47 |
|
// exist, so I know I've finished. If it isn't from the first threshold then there could be |
48 |
|
// other prefixes (e.g. "leg2") that have thresholds that can be modified, in which case I |
49 |
|
// need to continue. |
50 |
< |
if( thresholdNumber==1 ) break; |
50 |
> |
if( thresholdNumber==1 && legNumber!=0 ) break; |
51 |
|
} |
52 |
|
} |
53 |
|
|