diff options
Diffstat (limited to 'extra/usb_power/convert_power_log_board.py')
-rw-r--r-- | extra/usb_power/convert_power_log_board.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/extra/usb_power/convert_power_log_board.py b/extra/usb_power/convert_power_log_board.py index 159b4621d7..a555ee30ea 100644 --- a/extra/usb_power/convert_power_log_board.py +++ b/extra/usb_power/convert_power_log_board.py @@ -55,11 +55,15 @@ def write_to_file(file, sweetberry, inas): # EX : ('sweetberry', 0x40, 'SB_FW_CAM_2P8', 5.0, 1.000, 3, False), channel, i2c_addr = Spower.CHMAP[rec["channel"]] - record = " ('sweetberry', 0x%02x, '%s', 5.0, %f, %d, 'True')" ",\n" % ( - i2c_addr, - rec["name"], - rec["rs"], - channel, + record = ( + " ('sweetberry', 0x%02x, '%s', 5.0, %f, %d, 'True')" + ",\n" + % ( + i2c_addr, + rec["name"], + rec["rs"], + channel, + ) ) pyfile.write(record) |