mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 08:17:52 -06:00
sched: Use 'unsigned int' instead of 'uint16_t' for shutdown reason
Use 'unsigned int' instead of 'uint16_t' as is faster on some platforms. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b0524947e5
commit
b3e4ff7ef0
2 changed files with 4 additions and 4 deletions
|
@ -234,7 +234,7 @@ run_shutdown(void)
|
|||
|
||||
// Shutdown the machine if not already in the process of shutting down
|
||||
void
|
||||
sched_try_shutdown(uint16_t reason)
|
||||
sched_try_shutdown(unsigned int reason)
|
||||
{
|
||||
if (shutdown_status != 2)
|
||||
sched_shutdown(reason);
|
||||
|
@ -244,7 +244,7 @@ static jmp_buf shutdown_jmp;
|
|||
|
||||
// Force the machine to immediately run the shutdown handlers
|
||||
void
|
||||
sched_shutdown(uint16_t reason)
|
||||
sched_shutdown(unsigned int reason)
|
||||
{
|
||||
irq_disable();
|
||||
shutdown_reason = reason;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue