Skip to content

Commit 401220b

Browse files
committed
Use new API for reading data in example sketches for nodes without networking
1 parent d795c55 commit 401220b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/LCD/LCD.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void setup() {
2626
void loop() {
2727
// Take a reading
2828
struct hackAirData data;
29-
sensor.refresh(data);
29+
sensor.readData(data);
3030

3131
// Clear screen and move cursor to the top left
3232
lcd.clear();

examples/Serial-CSV/Serial-CSV.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void setup() {
2525
void loop() {
2626
// Take a reading
2727
struct hackAirData data;
28-
sensor.refresh(data);
28+
sensor.readData(data);
2929

3030
// If it was invalid, print error
3131
if (data.error != 0) {

examples/Serial-PlainText/Serial-PlainText.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {
2323
void loop() {
2424
// Take a reading
2525
struct hackAirData data;
26-
sensor.refresh(data);
26+
sensor.readData(data);
2727

2828
// If it was invalid, print error
2929
if (data.error != 0) {

0 commit comments

Comments
 (0)