From 5cd6b1afc7cacbe3479fd57305ce71ac25e42759 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Mon, 13 Sep 2021 13:41:28 -0400 Subject: improve consistency of function names --- watch-library/watch/watch_adc.c | 2 +- watch-library/watch/watch_adc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-library/watch') diff --git a/watch-library/watch/watch_adc.c b/watch-library/watch/watch_adc.c index 4a7a44ff..490a49b1 100644 --- a/watch-library/watch/watch_adc.c +++ b/watch-library/watch/watch_adc.c @@ -116,7 +116,7 @@ uint16_t watch_get_analog_pin_level(const uint8_t pin) { } } -void watch_set_num_analog_samples(uint16_t samples) { +void watch_set_analog_num_samples(uint16_t samples) { // ignore any input that's not a power of 2 (i.e. only one bit set) if (__builtin_popcount(samples) != 1) return; // if only one bit is set, counting the trailing zeroes is equivalent to log2(samples) diff --git a/watch-library/watch/watch_adc.h b/watch-library/watch/watch_adc.h index 77a8bfb7..b49f1301 100644 --- a/watch-library/watch/watch_adc.h +++ b/watch-library/watch/watch_adc.h @@ -68,7 +68,7 @@ uint16_t watch_get_analog_pin_level(const uint8_t pin); * the result in 16 bits. * @see watch_get_analog_pin_level **/ -void watch_set_num_analog_samples(uint16_t samples); +void watch_set_analog_num_samples(uint16_t samples); /** @brief Sets the length of time spent sampling, which allows measurement of higher impedance inputs. * Default is 1. -- cgit v1.2.3