From 0418d1e5f668dc54f7a503081815c3f65ba2bca8 Mon Sep 17 00:00:00 2001 From: Erol444 Date: Thu, 4 Nov 2021 19:20:20 +0100 Subject: [PATCH] Read bootloader config json now returns valid json --- examples/bootloader/bootloader_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/bootloader/bootloader_config.py b/examples/bootloader/bootloader_config.py index 17c7d0d24..0967094ab 100755 --- a/examples/bootloader/bootloader_config.py +++ b/examples/bootloader/bootloader_config.py @@ -2,6 +2,7 @@ import depthai as dai import sys +import json usage = False read = True @@ -34,7 +35,7 @@ with dai.DeviceBootloader(info) as bl: if read: print('Current flashed configuration') - print(f'{bl.readConfigData()}') + print(json.dumps(bl.readConfigData())) else: success = None error = None