diff --git a/libraries/AP_WindVane/AP_WindVane_NMEA.cpp b/libraries/AP_WindVane/AP_WindVane_NMEA.cpp index 49e563022e..7501571afb 100644 --- a/libraries/AP_WindVane/AP_WindVane_NMEA.cpp +++ b/libraries/AP_WindVane/AP_WindVane_NMEA.cpp @@ -197,14 +197,3 @@ bool AP_WindVane_NMEA::decode_latest_term() } return false; } - -// return the numeric value of an ascii hex character -int16_t AP_WindVane_NMEA::char_to_hex(char a) -{ - if (a >= 'A' && a <= 'F') - return a - 'A' + 10; - else if (a >= 'a' && a <= 'f') - return a - 'a' + 10; - else - return a - '0'; -} diff --git a/libraries/AP_WindVane/AP_WindVane_NMEA.h b/libraries/AP_WindVane/AP_WindVane_NMEA.h index a5007d59c4..f23f35b8b3 100644 --- a/libraries/AP_WindVane/AP_WindVane_NMEA.h +++ b/libraries/AP_WindVane/AP_WindVane_NMEA.h @@ -42,9 +42,6 @@ private: // decode each term bool decode_latest_term(); - // convert from char to hex value for checksum - int16_t char_to_hex(char a); - // latest values read in float _speed_ms; float _wind_dir_deg;