Skip to content

Commit

Permalink
Merge pull request #55 from Gabriel-Lacatus/master
Browse files Browse the repository at this point in the history
fix for compilation error against firmware v 0.4.7
  • Loading branch information
rwaldron committed Nov 18, 2015
2 parents d851bf4 + cb019b3 commit f4a200b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/voodoospark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ unsigned long pingRead(int pin) {

pinMode(pin, INPUT);

unsigned long duration = pulseIn(pin, HIGH);
unsigned long duration = pulseIn((uint16_t)pin, (uint8_t)HIGH);

return duration;
}
Expand Down

0 comments on commit f4a200b

Please sign in to comment.