Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/kit/arduino-fw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// We communicate with the Arduino at 115200 baud.
#define SERIAL_BAUD 115200

#define FW_VER 2
#define FW_VER 3

void setup() {
Serial.begin(SERIAL_BAUD);
Expand Down Expand Up @@ -61,7 +61,7 @@ void command_ultrasound() {
digitalWrite(pulse, LOW);

// measure the echo time on the echo pin
int duration = pulseIn(echo, HIGH, 60000);
long duration = pulseIn(echo, HIGH, 60000);
Serial.print(microsecondsToMm(duration));
}

Expand Down
Loading