kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			fix C++ warnings
The cast throws errors about ambiguous conversions. There's a prototype of requestFrom(uint8_t address, uint8_t length) so just use that one.pull/1505/head
							rodzic
							
								
									5106433572
								
							
						
					
					
						commit
						47ad27f9f6
					
				| 
						 | 
				
			
			@ -10,7 +10,7 @@ uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) {
 | 
			
		|||
    Wire.write(reg);
 | 
			
		||||
    Wire.endTransmission();
 | 
			
		||||
    delay(20);
 | 
			
		||||
    Wire.requestFrom((int)address, length);
 | 
			
		||||
    Wire.requestFrom(address, length);
 | 
			
		||||
    DEBUG_MSG("Wire.available() = %d\n", Wire.available());
 | 
			
		||||
    if (Wire.available() == 2) {
 | 
			
		||||
        // Read MSB, then LSB
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue