From f897f4833fc1f4280ec71c5385210f6813ebf609 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Mon, 14 Jan 2013 19:03:33 +0100 Subject: implement device bonding in timer conflict checker, thanks to Joachim Wilke for providing a patch --- conflictcheck.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'conflictcheck.c') diff --git a/conflictcheck.c b/conflictcheck.c index aa9c5e9..c8c1493 100644 --- a/conflictcheck.c +++ b/conflictcheck.c @@ -204,8 +204,33 @@ void cConflictCheck::InitDevicesInfo() for(int i=0; i 10721 + BondDevices(Setup.DeviceBondings); +#endif +} + +void cConflictCheck::BondDevices(const char *Bondings) +{ +#if APIVERSNUM > 10721 + LogFile.Log(3, "Bond Devices"); + if (Bondings) { + cSatCableNumbers SatCableNumbers(MAXDEVICES, Bondings); + int* array = SatCableNumbers.Array(); + for (int i=0; i 0 && array[i] == array[j] && i != j) { + LogFile.Log(3, "Bond devices %i and %i.", i+1, j+1); + devices[i].bondedDevices.push_back(&(devices[j])); + } + } + } + } + LogFile.Log(3, "Bond Devices done."); +#endif } + void cConflictCheck::Check() { if (evaltimeList) -- cgit v1.2.3