|  | @ -34,13 +34,6 @@ class Communication : public CommQueue<> { | 
			
		
	
		
		
			
				
					|  |  |             mPrintWholeTrace = printWholeTrace; |  |  |             mPrintWholeTrace = printWholeTrace; | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         void addImportant(Inverter<> *iv, uint8_t cmd) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             if(!mIsDevControl) // only reset communication once there is no other devcontrol command
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 mState = States::IDLE; // cancel current operation
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             mIsDevControl = true; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             CommQueue::addImportant(iv, cmd); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         void addPayloadListener(payloadListenerType cb) { |  |  |         void addPayloadListener(payloadListenerType cb) { | 
			
		
	
		
		
			
				
					|  |  |             mCbPayload = cb; |  |  |             mCbPayload = cb; | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
	
		
		
			
				
					|  | @ -95,9 +88,6 @@ class Communication : public CommQueue<> { | 
			
		
	
		
		
			
				
					|  |  |                         mLocalBuf[i].len = 0; |  |  |                         mLocalBuf[i].len = 0; | 
			
		
	
		
		
			
				
					|  |  |                     } |  |  |                     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |                     if(!q->isDevControl) |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                         mIsDevControl = false; // reset devcontrol flag
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                     if(*mSerialDebug) |  |  |                     if(*mSerialDebug) | 
			
		
	
		
		
			
				
					|  |  |                         mHeu.printStatus(q->iv); |  |  |                         mHeu.printStatus(q->iv); | 
			
		
	
		
		
			
				
					|  |  |                     mHeu.getTxCh(q->iv); |  |  |                     mHeu.getTxCh(q->iv); | 
			
		
	
	
		
		
			
				
					|  | @ -1066,7 +1056,6 @@ class Communication : public CommQueue<> { | 
			
		
	
		
		
			
				
					|  |  |         Heuristic mHeu; |  |  |         Heuristic mHeu; | 
			
		
	
		
		
			
				
					|  |  |         uint32_t mLastEmptyQueueMillis = 0; |  |  |         uint32_t mLastEmptyQueueMillis = 0; | 
			
		
	
		
		
			
				
					|  |  |         bool mPrintSequenceDuration = false; |  |  |         bool mPrintSequenceDuration = false; | 
			
		
	
		
		
			
				
					|  |  |         bool mIsDevControl = false; // holds if current command is devcontrol
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | }; |  |  | }; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | #endif /*__COMMUNICATION_H__*/ |  |  | #endif /*__COMMUNICATION_H__*/ | 
			
		
	
	
		
		
			
				
					|  | 
 |