]> git.earman.xyz Git - sensor-watch.git/commitdiff
improve consistency of function names
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 13 Sep 2021 17:41:28 +0000 (13:41 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 13 Sep 2021 17:41:28 +0000 (13:41 -0400)
watch-library/watch/watch_adc.c
watch-library/watch/watch_adc.h

index 4a7a44ff2a427849cc048c16031b83fa3c5a688d..490a49b115b757c80686dd944771ddccde4d9a35 100644 (file)
@@ -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)
index 77a8bfb7f742bb6f8ec57db24c3d6734c15e772b..b49f1301e15875ea1d087df13fd1d0640fad1b09 100644 (file)
@@ -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.