Skip to content

Commit 4f5eb32

Browse files
committed
rename global function
1 parent 01240fc commit 4f5eb32

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cores/esp8266/Schedule.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ bool schedule_recurrent_function_us(const std::function<bool(void)>& fn,
138138
return true;
139139
}
140140

141-
uint32_t compute_recurrent_grain ()
141+
uint32_t compute_scheduled_recurrent_grain ()
142142
{
143143
if (recurrent_max_grain_mS == 0)
144144
{

cores/esp8266/Schedule.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
// scheduled function happen more often: every yield() (vs every loop()),
4040
// and time resolution is microsecond (vs millisecond). Details are below.
4141

42-
// compute_recurrent_grain() is used by delay() to give a chance to all
43-
// recurrent functions to run per their timing requirement.
42+
// compute_scheduled_recurrent_grain() is used by delay() to give a chance to
43+
// all recurrent functions to run per their timing requirement.
4444

45-
uint32_t compute_recurrent_grain ();
45+
uint32_t compute_scheduled_recurrent_grain ();
4646

4747
// scheduled functions called once:
4848
//

cores/esp8266/core_esp8266_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool esp_try_delay(const uint32_t start_ms, const uint32_t timeout_ms, const uin
172172
}
173173

174174
// compute greatest chunked delay with respect to scheduled recurrent functions
175-
uint32_t grain_ms = std::gcd(intvl_ms, compute_recurrent_grain());
175+
uint32_t grain_ms = std::gcd(intvl_ms, compute_scheduled_recurrent_grain());
176176

177177
// recurrent scheduled functions will be called from esp_delay()->esp_suspend()
178178
esp_delay(grain_ms > 0 ?

0 commit comments

Comments
 (0)