Verify/compile error for SCD30 Library

Did a couple of searches on this and don’t see anything relevant.

SCD30 CO2 sensor and a Red Board.

Sketch Example1_BasicReadings.ico date May 22, 2018

Looks like I’m getting errors in SparkFun_SCD30_Arduino_Library.cpp.

Here is the orange text from the Ardunio IDE.

Thanks for looking.

C:\Users\M313173\Documents\MATT DOCS\portable\arduino-1.8.10\portable\sketchbook\libraries\SparkFun_SCD30_Arduino_Library-master\src\SparkFun_SCD30_Arduino_Library.cpp: In member function ‘bool SCD30::readMeasurement()’:

C:\Users\M313173\Documents\MATT DOCS\portable\arduino-1.8.10\portable\sketchbook\libraries\SparkFun_SCD30_Arduino_Library-master\src\SparkFun_SCD30_Arduino_Library.cpp:248:18: error: ‘class HardwareSerial’ has no member named ‘printf’; did you mean ‘print’?

Serial.printf(“Found CRC in byte %u, expected %u, got %u\n”, x, incoming, foundCrc);

^~~~~~

print

C:\Users\M313173\Documents\MATT DOCS\portable\arduino-1.8.10\portable\sketchbook\libraries\SparkFun_SCD30_Arduino_Library-master\src\SparkFun_SCD30_Arduino_Library.cpp:257:12: error: ‘class HardwareSerial’ has no member named ‘printf’; did you mean ‘print’?

Serial.printf(“No SCD30 data found from I2C, i2c claims we should receive %u bytes\n”, receivedBytes);

^~~~~~

print

Multiple libraries were found for “SparkFun_SCD30_Arduino_Library.h”

Used: C:\Users\M313173\Documents\MATT

Not used: C:\Users\M313173\Documents\MATT

Not used: C:\Users\M313173\Documents\MATT

Multiple libraries were found for “Wire.h”

Used: C:\Users\M313173\Documents\MATT

Using library SparkFun_SCD30_Arduino_Library-master at version 1.0.5 in folder: C:\Users\M313173\Documents\MATT DOCS\portable\arduino-1.8.10\portable\sketchbook\libraries\SparkFun_SCD30_Arduino_Library-master

Using library Wire at version 1.0 in folder: C:\Users\M313173\Documents\MATT DOCS\portable\arduino-1.8.10\hardware\arduino\avr\libraries\Wire

exit status 1

Error compiling for board Arduino/Genuino Uno.

It looks like we broke something in the last two updates!

Try deleting the existing library from your /Arduino/libraries folder, quit and restart Arduino and installing version 1.0.3 from the link below. (v1.0.4 might also work as well, but I tested with v1.0.3 and it worked. 1.0.3 is also the latest in the library manager.)

https://github.com/sparkfun/SparkFun_SC … v1.0.3.zip

Thanks, that fixed it!