Update xsns_22_sr04.ino

This commit is contained in:
andrethomas2 2018-12-01 23:15:19 +02:00 committed by GitHub
parent b03c761eee
commit e37dbd1f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ real64_t distance;
NewPing* sonar = NULL;
void Sr04Init()
void Sr04Init(void)
{
sr04_echo_pin = pin[GPIO_SR04_ECHO];
sr04_trig_pin = pin[GPIO_SR04_TRIG];