mirror of https://github.com/rusefi/bldc.git
Merge pull request #487 from powerdesigns/extra_fw_version_name
Extra fw version name
This commit is contained in:
commit
099aeb5b56
|
@ -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,14 @@
|
||||||
#error "No hardware name set"
|
#error "No hardware name set"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FW_NAME
|
||||||
|
#ifdef DISABLE_HW_LIMITS
|
||||||
|
#define FW_NAME "no_hw_limits"
|
||||||
|
#else
|
||||||
|
#define FW_NAME ""
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Possible HW properties.
|
// Possible HW properties.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue