Changes for Badger: (1) numerical keys passed to Elde component, (2) Diverter# for Badger stredna trat, ver. 2.18.828

This commit is contained in:
Milan Hanajik
2018-03-07 14:43:57 +01:00
parent 615b3409be
commit 9ab78cf824
3 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -161,10 +161,13 @@ namespace TBF.BenchControl.Elde.Diverter
DiverterCfg tmpcfg = args.Cfg as DiverterCfg;
if (tmpcfg != null && tmpcfg.Name.Equals(Name))
{
int diverterNr = int.Parse(Name.Substring(3));
#if GENESIS || PETERSBURG_200
int flowMtrNr = int.Parse(Name.Substring(3)) + 1;
int flowMtrNr = diverterNr + 1;
#elif BADGER_STREDNA_TRAT
int flowMtrNr = (diverterNr == 1) ? 1 : ((diverterNr == 2) ? 9 : 20);
#else /// PETERSBURG_50
int flowMtrNr = Name.Contains("1") ? 1 : 3;
int flowMtrNr = (diverterNr == 1) ? 1 : 3;
#endif
if (args.Command == CfgChangeCmd.CfgChange)