[apps/code] Do not call interrupt in printText

This commit is contained in:
Léa Saviot
2020-01-20 15:01:47 +01:00
parent 1dacd71acb
commit 3dcb40b5d4
3 changed files with 8 additions and 8 deletions

View File

@@ -19,16 +19,16 @@ bool micropython_port_vm_hook_loop() {
return false;
}
return micropython_port_vm_hook_loop_content();
}
bool micropython_port_vm_hook_loop_content() {
assert(MicroPython::ExecutionEnvironment::currentExecutionEnvironment() != nullptr);
MicroPython::ExecutionEnvironment::currentExecutionEnvironment()->refreshPrintOutput();
micropython_port_vm_hook_refresh_print();
// Check if the user asked for an interruption from the keyboard
return micropython_port_interrupt_if_needed();
}
void micropython_port_vm_hook_refresh_print() {
assert(MicroPython::ExecutionEnvironment::currentExecutionEnvironment() != nullptr);
MicroPython::ExecutionEnvironment::currentExecutionEnvironment()->refreshPrintOutput();
}
bool micropython_port_interruptible_msleep(int32_t delay) {
assert(delay >= 0);
/* We don't use millis because the systick drifts when changing the HCLK