Skip to content

Commit dcfc4c9

Browse files
fix(timer): Typo - milis instead of millis.
1 parent d164df8 commit dcfc4c9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cores/esp32/esp32-hal-timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
202202
return timer_val * 1000000 / frequency;
203203
}
204204

205-
uint64_t timerReadMilis(hw_timer_t *timer) {
205+
uint64_t timerReadMillis(hw_timer_t *timer) {
206206
uint64_t timer_val = timerRead(timer);
207207
uint32_t frequency = timerGetFrequency(timer);
208208
return timer_val * 1000 / frequency;

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

+2-2
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
122+
timerReadMillis
123123
**************
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)