forked from mfulz_github/qmk_firmware
		
	Fix TWI driver not aborting when faced with no response after attempting to address a device on the bus.
This commit is contained in:
		
							parent
							
								
									c0c982df7a
								
							
						
					
					
						commit
						634abab38a
					
				@ -66,8 +66,8 @@ bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS)
 | 
				
			|||||||
			case TW_MR_SLA_ACK:
 | 
								case TW_MR_SLA_ACK:
 | 
				
			||||||
				return true;
 | 
									return true;
 | 
				
			||||||
			default:
 | 
								default:
 | 
				
			||||||
				TWI_StopTransmission();
 | 
									TWCR = ((1 << TWINT) | (1 << TWSTO) | (1 << TWEN));
 | 
				
			||||||
				break;
 | 
									return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -20,6 +20,7 @@
 | 
				
			|||||||
  *  <b>Fixed:</b>
 | 
					  *  <b>Fixed:</b>
 | 
				
			||||||
  *  - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin
 | 
					  *  - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin
 | 
				
			||||||
  *  - Fixed TWI_StartTransmission() corrupting the contents of the GPIOR0 register
 | 
					  *  - Fixed TWI_StartTransmission() corrupting the contents of the GPIOR0 register
 | 
				
			||||||
 | 
					  *  - Fix TWI driver not aborting when faced with no response after attempting to address a device on the bus
 | 
				
			||||||
  *
 | 
					  *
 | 
				
			||||||
  *  \section Sec_ChangeLog100219 Version 100219
 | 
					  *  \section Sec_ChangeLog100219 Version 100219
 | 
				
			||||||
  *
 | 
					  *
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user