Skip to content

Commit

Permalink
pulseIn => pingPulseIn
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Nov 18, 2015
1 parent f4a200b commit 573ebd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/voodoospark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void readAndReportI2cData(byte address, int theRegister, byte numBytes) {
*
*/

unsigned long pulseIn(uint16_t pin, uint8_t state) {
unsigned long pingPulseIn(uint16_t pin, uint8_t state) {
#if (PLATFORM_ID == 0) // Core
STM32_Pin_Info* PIN_MAP = HAL_Pin_Map(); // Pointer required for highest access speed
#endif
Expand Down Expand Up @@ -419,7 +419,7 @@ unsigned long pingRead(int pin) {

pinMode(pin, INPUT);

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

return duration;
}
Expand Down

0 comments on commit 573ebd3

Please sign in to comment.