Merge pull request #487 from powerdesigns/extra_fw_version_name

Extra fw version name
This commit is contained in:
Benjamin Vedder 2022-05-03 22:53:47 +02:00 committed by GitHub
commit 099aeb5b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 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,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.
/*