update try catch on Ampt class
This commit is contained in:
parent
05926994b7
commit
01f1def61b
|
@ -33,7 +33,9 @@ public class AmptDevices
|
||||||
}
|
}
|
||||||
catch ( Exception e)
|
catch ( Exception e)
|
||||||
{
|
{
|
||||||
|
if( e is not NullChannelException)
|
||||||
Console.WriteLine("Failed to read Ampt data \n" + e.Message);
|
Console.WriteLine("Failed to read Ampt data \n" + e.Message);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue