Skip to content

Commit 0418d1e

Browse files
committed
Read bootloader config json now returns valid json
1 parent 3ebda0d commit 0418d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/bootloader/bootloader_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import depthai as dai
44
import sys
5+
import json
56

67
usage = False
78
read = True
@@ -34,7 +35,7 @@
3435
with dai.DeviceBootloader(info) as bl:
3536
if read:
3637
print('Current flashed configuration')
37-
print(f'{bl.readConfigData()}')
38+
print(json.dumps(bl.readConfigData()))
3839
else:
3940
success = None
4041
error = None

0 commit comments

Comments
 (0)