Skip to content

Commit

Permalink
clean(lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
florisla committed Oct 9, 2023
1 parent 7c21b4d commit 2e9e341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stm32loader/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
# RM0394 46.6.1 MCU device ID code
0x435: "STM32L4xx",
# ST BlueNRG series; see ST AN4872.
# Three-byte ID where we mask out byte 1 (metal fix) and byte 2 (mask set).
# Three-byte ID where we mask out byte 1 (metal fix)
# and byte 2 (mask set).
# Requires parity None.
0x000003: "BlueNRG-1 160kB",
0x00000F: "BlueNRG-1 256kB",
Expand Down
3 changes: 2 additions & 1 deletion stm32loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def read_device_id(self):
family = self.configuration.family
if family == "NRG":
# ST AN4872.
# Three bytes encode metal fix, mask set, BlueNRG-series + flash size.
# Three bytes encode metal fix, mask set,
# BlueNRG-series + flash size.
metal_fix = (device_id & 0xFF0000) >> 16
mask_set = (device_id & 0x00FF00) >> 8
device_id = device_id & 0x0000FF
Expand Down

0 comments on commit 2e9e341

Please sign in to comment.