mirror of
				https://github.com/liberatedsystems/RNode_Firmware_CE.git
				synced 2024-07-02 14:34:13 +02:00 
			
		
		
		
	Re-enable SerialBT
This commit is contained in:
		
							parent
							
								
									fcba036c01
								
							
						
					
					
						commit
						ebaea3024c
					
				@ -1301,16 +1301,20 @@ void buffer_serial() {
 | 
			
		||||
        if (!fifo_isfull_locked(&serialFIFO)) {
 | 
			
		||||
          fifo_push_locked(&serialFIFO, Serial.read());
 | 
			
		||||
        }
 | 
			
		||||
      #else
 | 
			
		||||
        if (HAS_BLUETOOTH && bt_state == BT_STATE_CONNECTED) {
 | 
			
		||||
      #elif HAS_BLUETOOTH
 | 
			
		||||
        if (bt_state == BT_STATE_CONNECTED) {
 | 
			
		||||
          if (!fifo_isfull(&serialFIFO)) {
 | 
			
		||||
            //fifo_push(&serialFIFO, SerialBT.read());
 | 
			
		||||
            fifo_push(&serialFIFO, SerialBT.read());
 | 
			
		||||
          }
 | 
			
		||||
        } else {
 | 
			
		||||
          if (!fifo_isfull(&serialFIFO)) {
 | 
			
		||||
            fifo_push(&serialFIFO, Serial.read());
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      #else
 | 
			
		||||
        if (!fifo_isfull(&serialFIFO)) {
 | 
			
		||||
          fifo_push(&serialFIFO, Serial.read());
 | 
			
		||||
        }
 | 
			
		||||
      #endif
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user