Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f70d556fc1f4
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3526bd46bb40
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 20, 2019

  1. Copy the full SHA
    3526bd4 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 software/glasgow/access/direct/arguments.py
4 changes: 2 additions & 2 deletions software/glasgow/access/direct/arguments.py
Original file line number Diff line number Diff line change
@@ -108,8 +108,8 @@ def add_pin_set_argument(self, parser, name, width, default=None, required=False
if isinstance(width, int):
width = range(width, width + 1)
if default is True and len(self._free_pins) >= width.start:
default = ",".join([str(self._get_free(self._free_pins)) for _ in width])
if isinstance(default, int) and len(self._free_pins) >= default:
default = ",".join([str(self._get_free(self._free_pins)) for _ in range(width.start)])
elif isinstance(default, int) and len(self._free_pins) >= default:
default = ",".join([str(self._get_free(self._free_pins)) for _ in range(default)])
self._add_pin_set_argument(parser, name, width, default, required)