Skip to content
Snippets Groups Projects
Commit 1b6cfce2 authored by Mathias Holm Lund's avatar Mathias Holm Lund
Browse files

Changed power input range to 400 - 1200 W

parent 099239c7
No related branches found
No related tags found
1 merge request!4Feature/fonfigurable power tube
Pipeline #268241 failed
......@@ -14,11 +14,11 @@ namespace Microwave.Classes.Boundary
myOutput = output;
}
public void TurnOn(int power)
public void TurnOn(int power) //Power bestemt her. Skal ændres.
{
if (power < 1 || 700 < power)
if (power < 400 || 1200 < power)
{
throw new ArgumentOutOfRangeException("power", power, "Must be between 1 and 700 (incl.)");
throw new ArgumentOutOfRangeException("power", power, "Must be between 400 and 1200 (incl.)");
}
if (IsOn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment