Selaa lähdekoodia

Version 6.2.4; Focus on Downstream Messaging

platenspeler 5 vuotta sitten
vanhempi
commit
fa4c792032
2 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 2 2
      src/_txRx.ino
  2. 3 2
      src/_udpSemtech.ino

+ 2 - 2
src/_txRx.ino

@@ -158,11 +158,11 @@ int sendPacket(uint8_t *buf, uint8_t length)
 	}
 	
 	else {
-#		if _PROFILER>=1
+#		if _MONITOR>=1
 		if ((debug>=2) && (pdebug & P_TX)) {
 			mPrint("_STRICT==1:: Not RX1 or RX2, wait= "+String(w/1000000)+"."+String(w%1000000)+", SF="+String(LoraDown.sfTx)+", Freq="+LoraDown.freq );
 		}
-#		endif //_PROFILER
+#		endif //_MONITOR
 		// And do not convert the down SF.
 	}
 

+ 3 - 2
src/_udpSemtech.ino

@@ -350,17 +350,18 @@ int readUdp(int packetSize)
 			if (buff_down[0]== 1) {
 #				if _MONITOR>=1
 				if ((debug>=1) && (pdebug & P_TX)) {
-					mPrint("UP readUDP:: PKT_TX_ACK: protocol version 1");
+					mPrint("UP readUdp:: PKT_TX_ACK: protocol version 1");
 					data = buff_down + 4;
 					data[packetSize] = 0;
-					mPrint("UP readUdp:: PKT_TX_ACK: size="+String(packetSize)+", data="+String((char *)data)); 
 				}
 #				endif
 				break;										// return
 			}
 
 #			ifdef _PROFILER
+			if ((debug>=1) && (pdebug & P_TX)) {
 				mPrint("UP readUDP:: TX_ACK protocol version 2+");
+			}
 #			endif //_PROFILER