From: Joey Castillo Date: Thu, 27 Jan 2022 02:04:56 +0000 (-0500) Subject: silence compiler warning X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=1b1bba2de0f23cec2de21100b495d56c1056af72;p=sensor-watch.git silence compiler warning --- diff --git a/watch-library/hardware/watch/watch_adc.c b/watch-library/hardware/watch/watch_adc.c index 32f0668..c8c4d65 100644 --- a/watch-library/hardware/watch/watch_adc.c +++ b/watch-library/hardware/watch/watch_adc.c @@ -154,6 +154,8 @@ static inline uint32_t _watch_adc_get_reference_voltage(const watch_adc_referenc return ADC_REFCTRL_REFSEL_INTVCC2_Val; break; } + + return 0; } void watch_set_analog_reference_voltage(watch_adc_reference_voltage reference) {