Maxbotix ultrasonic distance sensor library
Fork of MaxbotixDriver by
Revision 3:c231deea4d36, committed 2020-01-17
- Comitter:
- SomeRandomBloke
- Date:
- Fri Jan 17 14:49:13 2020 +0000
- Parent:
- 2:911740f19198
- Child:
- 4:95f696f59d94
- Commit message:
- something
Changed in this revision
sonar.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/sonar.cpp Wed Mar 16 23:37:03 2016 +0000 +++ b/sonar.cpp Fri Jan 17 14:49:13 2020 +0000 @@ -5,8 +5,8 @@ time(t), pulseStartTime(0), range(0) { - interrupt.rise(this, &Sonar::pulseStart); - interrupt.fall(this, &Sonar::pulseStop); + interrupt.rise(callback(this,&Sonar::pulseStart)); + interrupt.fall(callback(this,&Sonar::pulseStop)); } int Sonar::read() {