diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-12-19 12:07:51 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-12-30 21:28:32 -0500 |
commit | c620f4836e0035ed36d13f2e44f9097ec7ae700d (patch) | |
tree | f0b82a7db6a235cdfc9dae363703e466d241a89b | |
parent | 34fd3f41ea1f819fb43b386334d01c13ffb4f781 (diff) | |
download | kutter-c620f4836e0035ed36d13f2e44f9097ec7ae700d.tar.gz kutter-c620f4836e0035ed36d13f2e44f9097ec7ae700d.tar.xz kutter-c620f4836e0035ed36d13f2e44f9097ec7ae700d.zip |
canserial: Only call bootloader_request() if CONFIG_HAVE_BOOTLOADER_REQUEST
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/generic/canserial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generic/canserial.c b/src/generic/canserial.c index fa46a6d2..0607e489 100644 --- a/src/generic/canserial.c +++ b/src/generic/canserial.c @@ -7,6 +7,7 @@ // This file may be distributed under the terms of the GNU GPLv3 license. #include <string.h> // memcpy +#include "autoconf.h" // CONFIG_HAVE_BOOTLOADER_REQUEST #include "board/io.h" // readb #include "board/irq.h" // irq_save #include "board/misc.h" // console_sendf @@ -185,7 +186,7 @@ can_process_set_klipper_nodeid(struct canbus_msg *msg) static void can_process_request_bootloader(struct canbus_msg *msg) { - if (!can_check_uuid(msg)) + if (!CONFIG_HAVE_BOOTLOADER_REQUEST || !can_check_uuid(msg)) return; bootloader_request(); } |