update try-catch on NcAdapter for status strb/ack
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user