mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 21:58:05 -06:00
command: Move low-level sendf transmission into board code
Export a new console_sendf() function from the board code instead of console_get_output() and console_push_output(). This enables more flexibility in how the board specific code produces output. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
292453d306
commit
44f2a2a952
8 changed files with 87 additions and 40 deletions
|
@ -85,16 +85,9 @@ timer_read_time(void)
|
|||
* Turn stdin/stdout into serial console
|
||||
****************************************************************/
|
||||
|
||||
// Return an output buffer that the caller may fill with transmit messages
|
||||
char *
|
||||
console_get_output(uint8_t len)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Accept the given number of bytes added to the transmit buffer
|
||||
// Encode and transmit a "response" message
|
||||
void
|
||||
console_push_output(uint8_t len)
|
||||
console_sendf(const struct command_encoder *ce, va_list args)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue