Pulizia codice
This commit is contained in:
@@ -2521,13 +2521,13 @@ namespace IOB_WIN
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public string GetMACAddress()
|
||||
public static string GetMACAddress()
|
||||
{
|
||||
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
|
||||
String sMacAddress = string.Empty;
|
||||
foreach (NetworkInterface adapter in nics)
|
||||
{
|
||||
if (sMacAddress == String.Empty)// only return MAC Address from first card
|
||||
if (string.IsNullOrEmpty(sMacAddress))// only return MAC Address from first card
|
||||
{
|
||||
IPInterfaceProperties properties = adapter.GetIPProperties();
|
||||
//sMacAddress = adapter.GetPhysicalAddress().ToString();
|
||||
@@ -3319,8 +3319,6 @@ namespace IOB_WIN
|
||||
// verifico se la funzione SIA abilitata
|
||||
if (enableSendPzCountBlock)
|
||||
{
|
||||
//// rileggo qta da server...
|
||||
//pzCntReload(true);
|
||||
int delta = lastCountCNC - contapezzi;
|
||||
// se è abilitata verifico differenza: se ho DELTA > minSendPzCountBlock --> invio un blocco <= maxSendPzCountBlock
|
||||
if (delta > minSendPzCountBlock)
|
||||
|
||||
Reference in New Issue
Block a user