Skip to content

Commit

Permalink
scons: get_programmer(): refactor
Browse files Browse the repository at this point in the history
Obijuan committed Mar 5, 2024
1 parent d7c9263 commit cd77449
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apio/managers/scons.py
Original file line number Diff line number Diff line change
@@ -327,10 +327,14 @@ def get_programmer(self, board: str, prog: dict) -> str:
programmer = programmer.replace("${FTDI_ID}", ftdi_id)

# Replace Serial port
# -- The board uses a Serial port for uploading the circuit
# -- TODO: Refactor and test this part
if "${SERIAL_PORT}" in programmer:

# -- Check that the board is connected
self.check_usb(board, board_data)
print("-------> DEBUG: Traza 3")

# -- TODO: FIXME
device = self.get_serial_port(board, board_data, prog[SERIAL_PORT])
programmer = programmer.replace("${SERIAL_PORT}", device)

0 comments on commit cd77449

Please sign in to comment.