update try-catch on NcAdapter for status strb/ack

This commit is contained in:
Samuele E. Locatelli
2020-06-15 09:03:40 +02:00
parent ae6767a89d
commit 0a1400389f
+12 -2
View File
@@ -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;
}