try i2c bus 1 for clockgen, then try bus 2 if fails.

pull/267/head
alanbjohnston 3 years ago committed by GitHub
parent 99266fbda9
commit 9fc02fbeba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5025,11 +5025,17 @@ void start_clockgen() {
Wire1.setSCL(3);
Wire1.begin();
if (clockgen.begin(&Wire1) != ERROR_NONE)
if (clockgen.begin(&Wire) != ERROR_NONE)
{
/* There was a problem detecting the IC ... check your connections */
Serial.println("No Si5351 detected ... Check your wiring or I2C ADDR!");
return;
Serial.println("No Si5351 detected on bus 1");
if (clockgen.begin(&Wire1) != ERROR_NONE)
{
/* There was a problem detecting the IC ... check your connections */
Serial.println("No Si5351 detected on bus 2 ... Check your wiring or I2C ADDR!");
return;
}
}
Serial.println("Starting clockgen frequency 434.9 MHz");

Loading…
Cancel
Save

Powered by TurnKey Linux.