I'm trying to run the code about the SRF08 ultrasonic range meter on Arduino. I found the code in Arduino's web page http://www.arduino.cc/playground/Main/SonarSrf08. However, when i try to run this code i face to face an eror :
C:\Program Files\Arduino\arduino-0017\hardware\libraries\Sonar_srf08\Sonar_srf08.cpp: In member function 'void Sonar_srf08::setUnit(int, int, char)':
C:\Program Files\Arduino\arduino-0017\hardware\libraries\Sonar_srf08\Sonar_srf08.cpp:46: error: case label does not reduce to an integer constant
C:\Program Files\Arduino\arduino-0017\hardware\libraries\Sonar_srf08\Sonar_srf08.cpp:49: error: case label does not reduce to an integer constant
Do u have any idea about this?