2021-02-28 04:38:57 +00:00
|
|
|
#
|
|
|
|
# random-bin.py
|
|
|
|
# Set a unique firmware name based on current date and time
|
|
|
|
#
|
2021-11-04 10:28:42 +00:00
|
|
|
import pioutil
|
|
|
|
if pioutil.is_pio_build():
|
2022-08-19 16:00:52 +00:00
|
|
|
from datetime import datetime
|
|
|
|
Import("env")
|
|
|
|
env['PROGNAME'] = datetime.now().strftime("firmware-%Y%m%d-%H%M%S")
|