mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-25 15:44:13 -06:00
command: Fix handling of buffer passing in args[] on 64bit mcu
If the buffer pointer can't fit in a uint32_t then pass a relative buffer offset instead. This fixes buffer handling on 64bit linux mcus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
473828ca6a
commit
a560432041
4 changed files with 17 additions and 0 deletions
|
@ -131,6 +131,12 @@ static struct task_wake console_wake;
|
|||
static uint8_t receive_buf[4096];
|
||||
static int receive_pos;
|
||||
|
||||
void *
|
||||
console_receive_buffer(void)
|
||||
{
|
||||
return receive_buf;
|
||||
}
|
||||
|
||||
// Process any incoming commands
|
||||
void
|
||||
console_task(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue