Skip to content

Commit ee168f5

Browse files
committed
Fixes missing include and indentation
1 parent e0bc499 commit ee168f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/Example2_basic_distance_trigger/Example2_basic_distance_trigger.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* Copyright (c) 2024 SparkFun Electronics
1313
*/
14+
#include "SparkFun_Qwiic_Ultrasonic_Arduino_Library.h"
1415

1516
// Create an ultrasonic sensor object
1617
QwiicUltrasonic myUltrasonic;
@@ -39,9 +40,9 @@ void setup() {
3940
// Attempt to begin the sensor
4041
if (myUltrasonic.begin(deviceAddress) == false)
4142
{
42-
Serial.println("Ultrasonic sensor not connected, check your wiring and I2C address!");
43-
while(1)
44-
;
43+
Serial.println("Ultrasonic sensor not connected, check your wiring and I2C address!");
44+
while(1)
45+
;
4546
}
4647

4748
Serial.println("Ultrasonic sensor connected!");

0 commit comments

Comments
 (0)