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
|
||||
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);
|
||||
|
|
|
@ -40,6 +40,14 @@
|
|||
#error "No hardware name set"
|
||||
#endif
|
||||
|
||||
#ifndef FW_NAME
|
||||
#ifdef DISABLE_HW_LIMITS
|
||||
#define FW_NAME "no_hw_limits"
|
||||
#else
|
||||
#define FW_NAME ""
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Possible HW properties.
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue