Skip to content

Commit 6c4e9ee

Browse files
fix(timer): Typo - milis instead of millis (espressif#10193)
* fix(timer): Typo - milis instead of millis. * fix(doc0: format fix CI error about format --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
1 parent 00b3941 commit 6c4e9ee

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cores/esp32/esp32-hal-timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
242242
return timer_val * 1000000 / frequency;
243243
}
244244

245-
uint64_t timerReadMilis(hw_timer_t *timer) {
245+
uint64_t timerReadMillis(hw_timer_t *timer) {
246246
if (timer == NULL) {
247247
log_e("Timer handle is NULL");
248248
return 0;

cores/esp32/esp32-hal-timer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void timerWrite(hw_timer_t *timer, uint64_t val);
4242

4343
uint64_t timerRead(hw_timer_t *timer);
4444
uint64_t timerReadMicros(hw_timer_t *timer);
45-
uint64_t timerReadMilis(hw_timer_t *timer);
45+
uint64_t timerReadMillis(hw_timer_t *timer);
4646
double timerReadSeconds(hw_timer_t *timer);
4747

4848
uint32_t timerGetFrequency(hw_timer_t *timer);

docs/en/api/timer.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ This function is used to read counter value in microseconds of the timer.
119119

120120
This function will return ``counter value`` of the timer in microseconds.
121121

122-
timerReadMilis
123-
**************
122+
timerReadMillis
123+
***************
124124

125125
This function is used to read counter value in milliseconds of the timer.
126126

127127
.. code-block:: arduino
128128
129-
uint64_t timerReadMilis(hw_timer_t * timer);
129+
uint64_t timerReadMillis(hw_timer_t * timer);
130130
131131
* ``timer`` timer struct.
132132

0 commit comments

Comments
 (0)