Skip to content

Commit 48ac444

Browse files
Changed the flipByte functionality to a c-standard function
Deleted flipByte function to use a c-standard form. Code has been tested and adjusted accordingly
1 parent 2ed880a commit 48ac444

File tree

4 files changed

+104
-133
lines changed

4 files changed

+104
-133
lines changed

examples/Example01_PresenceBasicReadings/Example01_PresenceBasicReadings.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ int32_t errorStatus = 0;
3737
int32_t busyError = 0;
3838
int32_t setupError = 0;
3939
int32_t presValError = 0;
40+
int32_t detectorError = 0;
4041

4142
void setup()
4243
{
@@ -80,6 +81,7 @@ void loop()
8081

8182
// Get the presence distance value and print out if no errors
8283
presValError = radarSensor.getPresenceDistanceValuemm(distance);
84+
8385
if(presValError == 0)
8486
{
8587
Serial.print("Presence Detected: ");
@@ -88,9 +90,9 @@ void loop()
8890
}
8991
else
9092
{
91-
Serial.print("Error returning presence distance value");
93+
Serial.println("Error returning presence distance value");
9294
}
9395

9496
// Delay 0.5 seconds between readings
95-
delay(50);
97+
delay(500);
9698
}

0 commit comments

Comments
 (0)