mirror of https://github.com/rusefi/bldc.git
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:
parent
21a8967831
commit
d290f61ddf
|
@ -268,6 +268,9 @@ void commands_process_packet(unsigned char *data, unsigned int len,
|
||||||
#endif
|
#endif
|
||||||
send_buffer[ind++] = nrf_flags;
|
send_buffer[ind++] = nrf_flags;
|
||||||
|
|
||||||
|
strcpy((char*)(send_buffer + ind), FW_NAME);
|
||||||
|
ind += strlen(FW_NAME) + 1;
|
||||||
|
|
||||||
fw_version_sent_cnt++;
|
fw_version_sent_cnt++;
|
||||||
|
|
||||||
reply_func(send_buffer, ind);
|
reply_func(send_buffer, ind);
|
||||||
|
|
|
@ -40,6 +40,10 @@
|
||||||
#error "No hardware name set"
|
#error "No hardware name set"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FW_NAME
|
||||||
|
#define FW_NAME ""
|
||||||
|
#endif
|
||||||
|
|
||||||
// Possible HW properties.
|
// Possible HW properties.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue