Task update optimisation

This commit is contained in:
Spacehuhn 2022-07-17 01:21:26 +02:00
parent 8b018f1930
commit 2a9740d627
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace duckparser {
void type(const char* str, size_t len) {
for (size_t i=0; i<len; ++i) {
i += keyboard::write(&str[i]);
tasks::update();
if(i%10==0) tasks::update();
}
}
@ -373,6 +373,7 @@ namespace duckparser {
if (line_end && (repeat_num > 0)) --repeat_num;
interpret_timestamp = millis();
tasks::update();
}
line_list_destroy(l);