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