diff --git a/apio/managers/scons.py b/apio/managers/scons.py index 070c7345..606f0aea 100644 --- a/apio/managers/scons.py +++ b/apio/managers/scons.py @@ -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)