Skip to content

Commit

Permalink
scons: get_programmer(): clean code, add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 4, 2024
1 parent aaab046 commit ebc78db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ def get_programmer(self, board: str, prog: dict) -> str:
# -- Replace FTDI index
# -- Ex. "${FTDI_ID}" --> "0"
if "${FTDI_ID}" in programmer:

# -- Check that the board is connected
# -- If not, an exception is raised
self.check_usb(board, board_data)

# -- TODO: FIXME!
ftdi_id = self.get_ftdi_id(board, board_data, prog[FTDI_ID])
programmer = programmer.replace("${FTDI_ID}", ftdi_id)

Expand Down

0 comments on commit ebc78db

Please sign in to comment.