UP 添加字符串转浮点

This commit is contained in:
JiXieShi
2024-06-20 21:32:18 +08:00
parent e6d089e400
commit 7735fe06a1
2 changed files with 11 additions and 2 deletions

View File

@@ -117,13 +117,15 @@ TaskStatus_t TaskRun(void) {
if (p->runcnt == 0) {
p->enable = false;
p->lasttime = 0;
} else if (p->runcnt > 0) {
p->runcnt--;
continue;
}
if (p->callback) {
p->callback(p, p->userdata);
p->lasttime = platformTicksFunc() + p->intervaltime;
}
if (p->runcnt > 0) {
p->runcnt--;
}
}
p = p->next;
}