Check for 0x3AC or 0x32C in testConnection().
This commit is contained in:
		
							parent
							
								
									167c792116
								
							
						
					
					
						commit
						2eea6db437
					
				| 
						 | 
				
			
			@ -286,8 +286,9 @@ void HamShield::initialize() {
 | 
			
		|||
 */
 | 
			
		||||
bool HamShield::testConnection() {
 | 
			
		||||
    I2Cdev::readWord(devAddr, 0x09, radio_i2c_buf);
 | 
			
		||||
    // TODO: find a device ID reg I can use
 | 
			
		||||
    // 03ac or 032c
 | 
			
		||||
    return radio_i2c_buf[0] == 0x03AC; // TODO: find a device ID reg I can use
 | 
			
		||||
    return (radio_i2c_buf[0] == 0x03AC || radio_i2c_buf[0] == 0x32C);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue