Send FW_NAME

See https://github.com/vedderb/vesc_tool/pull/229

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
This commit is contained in:
Marcos Chaparro 2022-05-03 09:54:36 -03:00
parent 21a8967831
commit d290f61ddf
2 changed files with 7 additions and 0 deletions

View File

@ -268,6 +268,9 @@ void commands_process_packet(unsigned char *data, unsigned int len,
#endif
send_buffer[ind++] = nrf_flags;
strcpy((char*)(send_buffer + ind), FW_NAME);
ind += strlen(FW_NAME) + 1;
fw_version_sent_cnt++;
reply_func(send_buffer, ind);

View File

@ -40,6 +40,10 @@
#error "No hardware name set"
#endif
#ifndef FW_NAME
#define FW_NAME ""
#endif
// Possible HW properties.
/*