Skip to content

when FlashGBX_GUI ConnectDevice() calls self.CONN.GetMode(), GetMode() always returns None #131

Description

@fredemmott
	def GetMode(self):
		if time.time() < self.LAST_CHECK_ACTIVE + 1: return self.MODE
		if self.CheckActive() is False: return None
		if self.MODE is None: return None # <<<<<<<<
		if self.FW["fw_ver"] < 12: return self.MODE
		mode = self._get_fw_variable("CART_MODE")
                ...

self.MODE is always None in this situation

I don't think think this line is needed?

  • if fw_ver < 12, the next line always does the same thing
  • if >= 12, it's fetched from the firmware

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions