lufa: Print TMK version to console
This commit is contained in:
parent
7412953fee
commit
8449ad385b
3 changed files with 4 additions and 4 deletions
|
|
@ -99,8 +99,8 @@ ifeq (yes,$(strip $(KEYMAP_SECTION_ENABLE)))
|
|||
endif
|
||||
|
||||
# Version string
|
||||
VERSION := $(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
|
||||
OPT_DEFS += -DVERSION=$(VERSION)
|
||||
TMK_VERSION := $(shell (git describe --always --dirty=+ || echo 'unknown') 2> /dev/null)
|
||||
OPT_DEFS += -DTMK_VERSION=$(TMK_VERSION)
|
||||
|
||||
|
||||
# Search Path
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ static bool command_common(uint8_t code)
|
|||
print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") "
|
||||
"PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") "
|
||||
"VER: " STR(DEVICE_VER) "\n");
|
||||
print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n");
|
||||
print("BUILD: " STR(TMK_VERSION) " (" __TIME__ " " __DATE__ ")\n");
|
||||
/* build options */
|
||||
print("OPTIONS:"
|
||||
#ifdef PROTOCOL_PJRC
|
||||
|
|
|
|||
|
|
@ -642,7 +642,7 @@ int main(void)
|
|||
print_set_sendchar(sendchar);
|
||||
host_set_driver(&lufa_driver);
|
||||
|
||||
print("\n\nKeyboard init.\n");
|
||||
print("\n\nTMK:" STR(TMK_VERSION) "/LUFA\n\n");
|
||||
hook_early_init();
|
||||
keyboard_setup();
|
||||
setup_usb();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue