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:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user