mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-19 19:21:05 +00:00
Add config file as argument.
This commit is contained in:
parent
c940a2f362
commit
87150b7770
@ -172,7 +172,12 @@ def test_dfu_runtime(id):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
with open(f'{os.path.dirname(__file__)}/hitl_config.json') as f:
|
||||
if len(sys.argv) != 2:
|
||||
print('Usage:')
|
||||
print('python hitl_test.py config.json')
|
||||
sys.exit(-1)
|
||||
|
||||
with open(f'{os.path.dirname(__file__)}/{sys.argv[1]}') as f:
|
||||
config = json.load(f)
|
||||
|
||||
for device in config['devices']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user