diff --git a/commands.c b/commands.c index 26508c00..5bec238e 100644 --- a/commands.c +++ b/commands.c @@ -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); diff --git a/hwconf/hw.h b/hwconf/hw.h index 0a4ad72b..b07aec51 100644 --- a/hwconf/hw.h +++ b/hwconf/hw.h @@ -40,6 +40,10 @@ #error "No hardware name set" #endif +#ifndef FW_NAME +#define FW_NAME "" +#endif + // Possible HW properties. /*