updated DeviceName handling
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#ifndef HOST_NAME
|
||||
#define HOST_NAME "AirsoftTimer_%08X"
|
||||
#ifndef DEVICE_NAME
|
||||
#define HOST_NAME "AirsoftTimer"
|
||||
#else
|
||||
#define HOST_NAME DEVICE_NAME
|
||||
#endif
|
||||
|
||||
#define SHUTDOWN_DELAY_MS 5000
|
||||
|
@@ -11,6 +11,7 @@ typedef struct Globals_s
|
||||
char systemStatustxt[16] = ""; /**< Text representation of system status */
|
||||
EERequest_t requestEEAction = EE_IDLE; /**< EEPROM-related request */
|
||||
char DeviceName[33]; /**< Device name */
|
||||
char DeviceNameId[sizeof(DeviceName) + 8]; /**< Device name plus 8 chars chipID */
|
||||
char FlashVersion[10]; /**< Flash version */
|
||||
uint16_t eePersistanceAdress; /**< EEPROM persistence address */
|
||||
bool hasDTC;
|
||||
|
Reference in New Issue
Block a user