Skip to content

Commit 257444a

Browse files
committed
Fix error in example sketch
1 parent 8bbd75a commit 257444a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,10 @@ This library does not currently support the spread spectrum function of the Si53
711711
Changelog
712712
---------
713713

714+
* v2.1.1
715+
716+
* Add bool return value to _init()_ indicating whether a device is on the I2C bus
717+
714718
* v2.1.0
715719

716720
* Add support for reference frequencies and corrections for both the XO and CLKIN

examples/si5351_example/si5351_example.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void setup()
2929
// Start serial and initialize the Si5351
3030
Serial.begin(57600);
3131
i2c_found = si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0, 0);
32-
if(i2c_found)
32+
if(!i2c_found)
3333
{
3434
Serial.println("Device not found on I2C bus!")
3535
}

0 commit comments

Comments
 (0)