mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-17 19:57:57 -06:00
basecmd: Rename get_status to get_clock
Change the get_status command to get_clock. Don't report the shutdown status in the new get_clock command. The primary purpose of this change is to force the host code to report a firmware version mismatch with older firmwares as recent changes (namely the ordering of message block acks) have subtle incompatibilities if different host/mcu code is used. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
879c45db19
commit
b93fd5b1b5
3 changed files with 21 additions and 21 deletions
|
@ -240,11 +240,11 @@ config_reset(uint32_t *args)
|
|||
****************************************************************/
|
||||
|
||||
void
|
||||
command_get_status(uint32_t *args)
|
||||
command_get_clock(uint32_t *args)
|
||||
{
|
||||
sendf("status clock=%u status=%c", timer_read_time(), sched_is_shutdown());
|
||||
sendf("clock clock=%u", timer_read_time());
|
||||
}
|
||||
DECL_COMMAND_FLAGS(command_get_status, HF_IN_SHUTDOWN, "get_status");
|
||||
DECL_COMMAND_FLAGS(command_get_clock, HF_IN_SHUTDOWN, "get_clock");
|
||||
|
||||
static uint32_t stats_send_time, stats_send_time_high;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue