mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
command: No need to disable irqs in sendf reentrant check
As long as the code is careful when writing the in_sendf variable it should be safe to update it without having to disable irqs. Also, make sure in_sendf is cleared on shutdown. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
9a44a20a9d
commit
ed715ec437
3 changed files with 16 additions and 14 deletions
|
@ -141,6 +141,7 @@ console_get_output(uint8_t len)
|
|||
void
|
||||
console_push_output(uint8_t len)
|
||||
{
|
||||
barrier();
|
||||
writeb(&transmit_max, readb(&transmit_max) + len);
|
||||
enable_tx_irq();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue