From ebc78dbd95000c31e4c9c2cc518a70488f7d2c52 Mon Sep 17 00:00:00 2001 From: Obijuan Date: Mon, 4 Mar 2024 23:26:20 +0100 Subject: [PATCH] scons: get_programmer(): clean code, add documentation --- apio/managers/scons.py | 5 +++++ 1 file changed, 5 insertions(+) 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)