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: 48b61ff0ed98
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 33a63efb56f1
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 8, 2019

  1. Copy the full SHA
    33a63ef View commit details
Showing with 4 additions and 2 deletions.
  1. +4 −2 software/glasgow/applet/interface/i2c_master/__init__.py
6 changes: 4 additions & 2 deletions software/glasgow/applet/interface/i2c_master/__init__.py
Original file line number Diff line number Diff line change
@@ -309,11 +309,13 @@ async def interact(self, device, args, i2c_iface):
# We need to read at least one byte in order to transmit a NAK bit
# so that the addressed device releases SDA.
if await i2c_iface.read(addr, 1, stop=True) is not None:
self.logger.info("scan found read address %s", bin(addr))
self.logger.info("scan found read address %s",
"{:#09b}".format(addr))
responded = True
if args.scan_write:
if await i2c_iface.write(addr, [], stop=True) is True:
self.logger.info("scan found write address %s", bin(addr))
self.logger.info("scan found write address %s",
"{:#09b}".format(addr))
responded = True

if responded and args.scan_device_id: