Skip to content

Commit 182f229

Browse files
alekla01Cruz Monrreal II
authored andcommitted
REALTEK_RTL8195AM daplink timestamp from os.environ
1 parent b8712b3 commit 182f229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/targets/REALTEK_RTL8195AM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def create_daplink(image_bin, ram1_bin, ram2_bin):
147147

148148
RAM2_HEADER['tag'] = format_number(TAG, 8)
149149
RAM2_HEADER['ver'] = format_number(VER, 8)
150-
RAM2_HEADER['timestamp'] = format_number(epoch_timestamp(), 16)
150+
RAM2_HEADER['timestamp'] = format_number(int(os.environ.get('DAPLINK_TIMESTAMP', epoch_timestamp())), 16)
151151
RAM2_HEADER['size'] = format_number(os.stat(ram2_bin).st_size + 72, 8)
152152
RAM2_HEADER['hash'] = format_string(sha256_checksum(ram2_bin))
153153
RAM2_HEADER['campaign'] = format_string(CAMPAIGN)

0 commit comments

Comments
 (0)