diff --git a/libraries/AP_ADC/AP_ADC_ADS1115.cpp b/libraries/AP_ADC/AP_ADC_ADS1115.cpp index b098c889a5..21f124a88d 100644 --- a/libraries/AP_ADC/AP_ADC_ADS1115.cpp +++ b/libraries/AP_ADC/AP_ADC_ADS1115.cpp @@ -192,7 +192,7 @@ float AP_ADC_ADS1115::_convert_register_data_to_mv(int16_t word) const break; default: pga = 0.0f; - hal.console->printf("Wrong gain"); + DEV_PRINTF("Wrong gain"); AP_HAL::panic("ADS1115: wrong gain selected"); break; }