Skip to content

Commit

Permalink
REALTEK_RTL8195AM daplink timestamp from os.environ
Browse files Browse the repository at this point in the history
  • Loading branch information
alekla01 committed Feb 11, 2019
1 parent 3252530 commit 3e88cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/targets/REALTEK_RTL8195AM.py
Expand Up @@ -147,7 +147,7 @@ def create_daplink(image_bin, ram1_bin, ram2_bin):

RAM2_HEADER['tag'] = format_number(TAG, 8)
RAM2_HEADER['ver'] = format_number(VER, 8)
RAM2_HEADER['timestamp'] = format_number(epoch_timestamp(), 16)
RAM2_HEADER['timestamp'] = format_number(int(os.environ.get('DAPLINK_TIMESTAMP', epoch_timestamp())), 16)
RAM2_HEADER['size'] = format_number(os.stat(ram2_bin).st_size + 72, 8)
RAM2_HEADER['hash'] = format_string(sha256_checksum(ram2_bin))
RAM2_HEADER['campaign'] = format_string(CAMPAIGN)
Expand Down

0 comments on commit 3e88cf7

Please sign in to comment.