summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_adc.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-09-13 13:41:28 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-09-13 13:41:28 -0400
commit5cd6b1afc7cacbe3479fd57305ce71ac25e42759 (patch)
tree851391e20879e13add60228dd066c253bb379a22 /watch-library/watch/watch_adc.c
parentcd935193e30ba3a44d3fc19d1147859fd9a5b1ed (diff)
downloadSensor-Watch-5cd6b1afc7cacbe3479fd57305ce71ac25e42759.tar.gz
Sensor-Watch-5cd6b1afc7cacbe3479fd57305ce71ac25e42759.tar.bz2
Sensor-Watch-5cd6b1afc7cacbe3479fd57305ce71ac25e42759.zip
improve consistency of function names
Diffstat (limited to 'watch-library/watch/watch_adc.c')
-rw-r--r--watch-library/watch/watch_adc.c2
1 files changed, 1 insertions, 1 deletions
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)