Browse Source
			
			
			fix retransmit counter for secondtry
			
				- try to fix "45ms"-Problem
			
			
				pull/1394/head
			
			
		 
		
			
				
					
						 rejoe2
					
					2 years ago
						rejoe2
					
					2 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
3 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/hm/Communication.h
				
- 
					
					
					 
					src/hm/hmRadio.h
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -156,9 +156,9 @@ class Communication : public CommQueue<> { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |                                 if(mFirstTry) { |  |  |                                 if(mFirstTry) { | 
			
		
	
		
		
			
				
					|  |  |                                     mFirstTry = false; |  |  |                                     mFirstTry = false; | 
			
		
	
		
		
			
				
					
					|  |  |                                     setAttempt(); |  |  |                                     //setAttempt();
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                                     mHeu.evalTxChQuality(q->iv, false, 0, 0); |  |  |                                     mHeu.evalTxChQuality(q->iv, false, 0, 0); | 
			
		
	
		
		
			
				
					
					|  |  |                                     q->iv->radioStatistics.rxFailNoAnser++; |  |  |                                     //q->iv->radioStatistics.rxFailNoAnser++;  // should only be one of fail or retransmit.
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                                     q->iv->radioStatistics.retransmits++; |  |  |                                     q->iv->radioStatistics.retransmits++; | 
			
		
	
		
		
			
				
					|  |  |                                     q->iv->radio->mRadioWaitTime.stopTimeMonitor(); |  |  |                                     q->iv->radio->mRadioWaitTime.stopTimeMonitor(); | 
			
		
	
		
		
			
				
					|  |  |                                     mState = States::START; |  |  |                                     mState = States::START; | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -167,6 +167,7 @@ class HmRadio : public Radio { | 
			
		
	
		
		
			
				
					|  |  |                 if(rx_ready) { |  |  |                 if(rx_ready) { | 
			
		
	
		
		
			
				
					|  |  |                     if (getReceived()) { // check what we got, returns true for last package
 |  |  |                     if (getReceived()) { // check what we got, returns true for last package
 | 
			
		
	
		
		
			
				
					|  |  |                         mNRFisInRX = false; |  |  |                         mNRFisInRX = false; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                         rx_ready = false; | 
			
		
	
		
		
			
				
					|  |  |                         mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first end his transmissions
 |  |  |                         mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first end his transmissions
 | 
			
		
	
		
		
			
				
					|  |  |                         mNrf24->stopListening(); |  |  |                         mNrf24->stopListening(); | 
			
		
	
		
		
			
				
					|  |  |                     } else { |  |  |                     } else { | 
			
		
	
	
		
		
			
				
					|  | 
 |