Skip to content

Commit 2116652

Browse files
committed
Removed warnings in parkingsensor example
1 parent e6a25eb commit 2116652

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/MySensors/examples/ParkingSensor/ParkingSensor.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and
6868
MySensor gw;
6969
MyMessage msg(CHILD_ID,V_TRIPPED);
7070
int oldParkedStatus=-1;
71-
int sendInterval = 5000; // Send park status at maximum every 5 second.
71+
unsigned long sendInterval = 5000; // Send park status at maximum every 5 second.
7272
unsigned long lastSend;
7373
#endif
7474

75-
int blinkInterval = 100; // blink interval (milliseconds)
75+
unsigned long blinkInterval = 100; // blink interval (milliseconds)
7676
unsigned long lastBlinkPeriod;
7777
bool blinkColor = true;
7878

7979
// To make a fading motion on the led ring/tape we only move one pixel/distDebounce time
80-
int distDebounce = 30;
80+
unsigned long distDebounce = 30;
8181
unsigned long lastDebouncePeriod;
8282
int numLightPixels=0;
8383
int skipZero=0;
@@ -161,4 +161,4 @@ void loop() {
161161
}
162162
pixels.show(); // This sends the updated pixel color to the hardware.
163163
}
164-
}
164+
}

0 commit comments

Comments
 (0)