From 7eda7d757a6288f856f6ee0e56baccdfe90afe8e Mon Sep 17 00:00:00 2001 From: murata Date: Mon, 21 Mar 2022 18:33:12 +0900 Subject: [PATCH] AP_ADC: Console output can be disabled --- libraries/AP_ADC/AP_ADC_ADS1115.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }