diff --git a/Thermo.Active.NC/NcAdapter.cs b/Thermo.Active.NC/NcAdapter.cs index 7ef23791..790b3d0e 100644 --- a/Thermo.Active.NC/NcAdapter.cs +++ b/Thermo.Active.NC/NcAdapter.cs @@ -97,7 +97,12 @@ namespace Thermo.Active.NC bool answ = false; if (statusCmd.Count > 0) { - answ = checkBitOnWord(statusCmd[0], 7); + try + { + answ = checkBitOnWord(statusCmd[0], 7); + } + catch + { } } return answ; } @@ -116,7 +121,12 @@ namespace Thermo.Active.NC bool answ = false; if (statusCmd.Count > 0) { - answ = checkBitOnWord(statusCmd[0], 8); + try + { + answ = checkBitOnWord(statusCmd[0], 8); + } + catch + { } } return answ; }