diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index aa8fcd9..2f5cfa7 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -1977,7 +1977,6 @@ namespace MTC_Adapter // ciclo lento else if (ciclo == gatherCycle.LF) { - //resetDebugConsole(); // leggo EVENTUALI parametri da config file getConfigParam(); ///acquisisco dati su programma in esecuzione e dati generali (stato, orologio, power...) @@ -1985,8 +1984,6 @@ namespace MTC_Adapter // eventuale log! if (utils.CRB("recTime")) logTimeResults(); - //// salva richiesta update x dati debug - //showDebugData = true; } // ciclo lentissimo else if (ciclo == gatherCycle.VLF) @@ -3667,12 +3664,6 @@ namespace MTC_Adapter for (int i = 0; i < maxNumOp; i++) { idUtMontato[i] = BitConverter.ToUInt16(elencoUtMem, 2 * i); -#if false - if (hasBigEndian) - { - idUtMontato[i] = Endian.SwapUInt16(idUtMontato[i]); - } -#endif } // step 2a: leggo vettore memoria dei maxMemAddr(200) UT in Tabella Utensili @@ -3681,12 +3672,6 @@ namespace MTC_Adapter for (int i = 0; i < maxMemAddr; i++) { tabUt[i] = BitConverter.ToUInt16(tabUt_UT, 2 * i); -#if false - if (hasBigEndian) - { - tabUt[i] = Endian.SwapUInt16(tabUt[i]); - } -#endif } // step 2b: devo cercare l'UT di ogni UnOp nella Tabella Utensili for (int i = 0; i < maxNumOp; i++) @@ -3703,12 +3688,6 @@ namespace MTC_Adapter memIndex = getDatiUt_step2b(ref int16Mem, j); // step 2b: leggo puntualmente la FamUt dal suo indice... idFamUt[i] = BitConverter.ToUInt16(int16Mem, 0); -#if false - if (hasBigEndian) - { - idFamUt[i] = Endian.SwapUInt16(idFamUt[i]); - } -#endif found = true; } } @@ -3721,12 +3700,6 @@ namespace MTC_Adapter for (int i = 0; i < maxMemAddr; i++) { tabFamUt[i] = BitConverter.ToUInt16(tabFam_FamUt, 2 * i); -#if false - if (hasBigEndian) - { - tabFamUt[i] = Endian.SwapUInt16(tabFamUt[i]); - } -#endif } // step 3b: devo cercare la famiglia dell'UT di ogni UnOp nella Tabella Famiglie for (int i = 0; i < maxNumOp; i++) @@ -3743,13 +3716,6 @@ namespace MTC_Adapter memIndex = getDatiUt_step3b(ref int8Mem, j); // step 3b: leggo puntualmente il TIPO DI vita UT dal suo indice... idTipoVitaUt[i] = int8Mem; -#if false - // non serve: 8 bit... - //if (hasBigEndian) - //{ - // idTipoVitaUt[i] = Endian.SwapUInt16(idTipoVitaUt[i]); - //} -#endif found = true; } } @@ -3770,12 +3736,6 @@ namespace MTC_Adapter memIndex = getDatiUt_step4(ref int32Mem, j); // leggo puntualmente valore della vita ut residua da indice utensile... valVitaUtRes[i] = BitConverter.ToUInt32(int32Mem, 0); -#if false - if (hasBigEndian) - { - valVitaUtRes[i] = Endian.SwapUInt32(valVitaUtRes[i]); - } -#endif found = true; } }