Skip to content

Commit 2ed880a

Browse files
Updated basic distance readings with correct code
Slight change made to the basic readings for distance sensing
1 parent 47f5765 commit 2ed880a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/Example06_DistanceBasicReadings/Example06_DistanceBasicReadings.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,15 @@ void setup()
8282
while(1); // Runs forever
8383
}
8484

85-
86-
87-
// New-line and delay for easier reading
85+
// New-line and 0.5 second delay for easier reading
8886
Serial.println();
89-
delay(1000);
87+
delay(500);
9088

9189
}
9290

9391
void loop()
9492
{
95-
distanceSetupError = distanceDetectorReadingSetup();
93+
distanceSetupError = radarSensor.distanceDetectorReadingSetup();
9694
if(distanceSetupError != 0)
9795
{
9896
Serial.println("Distance Reading Setup Error: ");

0 commit comments

Comments
 (0)