Have device blowing up with power working, except for animation.

This commit is contained in:
Tim Young 2018-02-14 17:40:06 +00:00
parent 64dce3d907
commit 9bb974c70a
2 changed files with 7 additions and 0 deletions

View File

@ -514,6 +514,8 @@ namespace EduNetworkBuilder
case NetTestType.ReadContextHelp: case NetTestType.ReadContextHelp:
case NetTestType.FailedPing: case NetTestType.FailedPing:
case NetTestType.DeviceIsFrozen: case NetTestType.DeviceIsFrozen:
case NetTestType.DeviceBlowsUpWithPower:
case NetTestType.DeviceNeedsUPS:
return TaskWasDone; //This variable will tell us if these tests have been done. return TaskWasDone; //This variable will tell us if these tests have been done.
case NetTestType.DHCPServerEnabled: case NetTestType.DHCPServerEnabled:
if (Source == null) return false; //Unable to do it. Do not count it against them. if (Source == null) return false; //Unable to do it. Do not count it against them.

View File

@ -726,6 +726,11 @@ namespace EduNetworkBuilder
{ {
PuzzleCount++; PuzzleCount++;
} }
if(nt.TheTest == NetTestType.DeviceBlowsUpWithPower && !nt.TaskWasDone)
{
NetworkDevice ND = DeviceFromName(nt.sHost);
if (ND != null) ND.PowerOff = true;
}
} }
if (report_as_done && PuzzleCount == 0 && PreviouslyUnsolved) if (report_as_done && PuzzleCount == 0 && PreviouslyUnsolved)
{ {