Safety, testing Exercise 21 README internal linking on Forgejo
This commit is contained in:
parent
e5d30469bc
commit
1d0a29f2a3
18 changed files with 2098 additions and 1 deletions
13
exercises/20_microphone/scripts/set_build_epoch.py
Normal file
13
exercises/20_microphone/scripts/set_build_epoch.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import time
|
||||
Import("env")
|
||||
|
||||
epoch = int(time.time())
|
||||
utc_tag = time.strftime("%Y%m%d_%H%M%S_z", time.gmtime(epoch))
|
||||
|
||||
env.Append(
|
||||
CPPDEFINES=[
|
||||
("FW_BUILD_EPOCH", str(epoch)),
|
||||
("FW_BUILD_UTC", '\"%s\"' % utc_tag),
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue