Updated HackRF firmware
This commit is contained in:
8
SoftwareDefined/HackRF/hackrf-2021.03.1/firmware/dfu.py
Normal file
8
SoftwareDefined/HackRF/hackrf-2021.03.1/firmware/dfu.py
Normal file
@ -0,0 +1,8 @@
|
||||
import os.path
|
||||
import struct
|
||||
import sys
|
||||
|
||||
with open("_header.bin", "wb") as f:
|
||||
x = struct.pack('<H', os.path.getsize(sys.argv[1] + '_dfu.bin') // 512 + 1)
|
||||
y = [0xda, 0xff, x[0], x[1]] + [0xff] * 12
|
||||
f.write(bytearray(y))
|
||||
Reference in New Issue
Block a user