Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit541e76f

Browse files
committed
esp8266/modutime: Actually implement ticks_cpu().
1 parentf71f37e commit541e76f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎esp8266/modutime.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ STATIC mp_obj_t time_ticks_us(void) {
134134
STATICMP_DEFINE_CONST_FUN_OBJ_0(time_ticks_us_obj,time_ticks_us);
135135

136136
STATICmp_obj_ttime_ticks_cpu(void) {
137-
// TODO
138-
returnMP_OBJ_NEW_SMALL_INT(0&MP_SMALL_INT_POSITIVE_MASK);
137+
returnMP_OBJ_NEW_SMALL_INT(mp_hal_ticks_cpu()&MP_SMALL_INT_POSITIVE_MASK);
139138
}
140139
STATICMP_DEFINE_CONST_FUN_OBJ_0(time_ticks_cpu_obj,time_ticks_cpu);
141140

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp