Skip to content

Commit

Permalink
Add commit sha to firmware string
Browse files Browse the repository at this point in the history
  • Loading branch information
psolyca committed Nov 18, 2022
1 parent 4bd112b commit 597286d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Firmware/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
/**
* @brief Firmware version string, used at startup and for the 'i' command.
*/
#define BP_FIRMWARE_STRING "Community Firmware v7.1 - goo.gl/gCzQnW "
#define _STRINGIFY(x) #x
#define STRINGIFY(x) _STRINGIFY(x)
#define BP_FIRMWARE_STRING "Community Firmware v7.1 - goo.gl/gCzQnW - " STRINGIFY(VERSION) " \r\n"

/**
* @brief Current mode configuration settings structure.
Expand Down
1 change: 1 addition & 0 deletions Firmware/busPirate.X/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ build: .build-post

.build-pre:
# Add your pre 'build' code here...
VERSION:=${shell git rev-parse --short HEAD}

.build-post: .build-impl
# Add your post 'build' code here...
Expand Down
2 changes: 1 addition & 1 deletion Firmware/busPirate.X/nbproject/configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
<property key="scalar-model" value="default"/>
<property key="use-cci" value="true"/>
<property key="use-iar" value="false"/>
<appendMe value="-save-temps -finline"/>
<appendMe value="-save-temps -finline -DVERSION=\&quot;$(VERSION)\&quot;"/>
</C30>
<C30-AR>
<property key="additional-options-chop-files" value="false"/>
Expand Down

0 comments on commit 597286d

Please sign in to comment.