From 76b1de0574608cf9947dd167e704d7ea5a93107a Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 26 Apr 2022 08:12:13 -0400 Subject: [PATCH] canbus: send the node ID command in the query response This is use to identify the application Signed-off-by: Eric Callahan --- src/generic/canbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/canbus.c b/src/generic/canbus.c index 4422de7..ab48bba 100644 --- a/src/generic/canbus.c +++ b/src/generic/canbus.c @@ -117,7 +117,7 @@ can_process_query_unassigned(uint32_t id, uint32_t len, uint8_t *data) uint8_t send[8]; send[0] = CANBUS_RESP_NEED_NODEID; memcpy(&send[1], canbus_uuid, sizeof(canbus_uuid)); - send[7] = 1; + send[7] = CANBUS_CMD_SET_NODEID_CANBOOT; // Send with retry for (;;) { int ret = canbus_send(CANBUS_ID_ADMIN_RESP, 8, send);