Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scum_programmer/programmer/scum.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _send_command(self, msg: str, command: bytes):
"""Send a command to the SCuM."""
pos = 0
_command = hdlc_encode(command)
while (pos % USB_CHUNK_SIZE) == 0 and pos < len(_command):
while pos < len(_command):
self.serial.write(_command[pos : pos + USB_CHUNK_SIZE])
self.serial.flush()
pos += USB_CHUNK_SIZE
Expand Down
2 changes: 1 addition & 1 deletion scum_programmer/programmer/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def get_default_port():
"""Return default serial port."""
ports = [port for port in list_ports.comports()]
ports = sorted([port for port in list_ports.comports()])
if sys.platform != "win32":
ports = [port for port in ports if "J-Link" == port.product]
if not ports:
Expand Down
2 changes: 1 addition & 1 deletion sdk/bsp/rftimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static rftimer_vars_t rftimer_vars = { 0 };
static bool delay_completed[NUM_INTERRUPTS] = { 0 }; // flag indicating whether the delay has
// completed. For use by
// delay_milliseoncds_synchronous method
static bool is_repeating[NUM_INTERRUPTS] = { 0 }; // flag indicating whethere each COMPARE
static bool is_repeating[NUM_INTERRUPTS] = { 0 }; // flag indicating whether each COMPARE
// will repeat at a fixed rate
static unsigned int timer_durations[NUM_INTERRUPTS] = { 0 }; // indicates length each COMPARE
// interrupt was set to run for.
Expand Down