Merge branch 'release/FixSendEmpty'
This commit is contained in:
@@ -3023,7 +3023,6 @@ namespace IOB_WIN_NEXT
|
||||
if (TSVC_Data.ContainsKey(chiave))
|
||||
{
|
||||
// verifico se sia scaduto OVVERO variato rispetto a prima oppure oltre tempo
|
||||
// massimo (default 1 minuti
|
||||
bool scaduto = !LastTSSSend.ContainsKey(chiave) || (LastTSSSend[chiave].AddSeconds(TSVC_Data[chiave].Period) < adesso);
|
||||
bool cambiato = !LastTSS.ContainsKey(chiave) || !LastTSS[chiave].Equals(valore);
|
||||
if (scaduto || cambiato)
|
||||
|
||||
@@ -851,6 +851,8 @@ namespace IOB_WIN_NEXT
|
||||
byte[] byteState = RawInput.Skip(item.Value.index).Take(item.Value.size).ToArray();
|
||||
// calcolo valore string come unione delle bitmap attive...
|
||||
valString = getBitmapState(item.Value, byteState);
|
||||
// se vuoto segno "OK"
|
||||
valString = string.IsNullOrEmpty(valString) ? "OK" : valString;
|
||||
saveValueString(ref outVal, valString, item.Key);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user