canbus: send the node ID command in the query response

This is use to identify the application

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-04-26 08:12:13 -04:00
parent e2c58fb6a6
commit 76b1de0574
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A

View File

@ -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);