1414 6. If device not detected: instruct user to enter Boot Mode manually
1515
1616Compatibility example:
17- Software: 3.3.0 .0 (from CatSniffer-Tools repo)
17+ Software: 3.3.1 .0 (from CatSniffer-Tools repo)
1818 Firmware: v3.1.0.0 (from CatSniffer-Firmware repo)
1919
2020Shell commands used:
4949console = Console ()
5050
5151# Tool version — must match cli.py VERSION_NUMBER
52- TOOL_VERSION = "3.3.0 .0"
52+ TOOL_VERSION = "3.3.1 .0"
5353
5454# GitHub API URL for the latest CatSniffer-Tools software release
5555GITHUB_TOOLS_RELEASE_URL = (
@@ -70,14 +70,14 @@ def get_latest_software_version() -> Optional[str]:
7070 ElectronicCats/CatSniffer-Tools repository.
7171
7272 Returns:
73- Version string (e.g., '3.3.0 .0') stripped of 'v' prefix, or None on error
73+ Version string (e.g., '3.3.1 .0') stripped of 'v' prefix, or None on error
7474 """
7575 try :
7676 response = requests .get (GITHUB_TOOLS_RELEASE_URL , timeout = 5 )
7777 response .raise_for_status ()
7878 data = response .json ()
7979 tag = data .get ("tag_name" , "" )
80- # Strip 'v' prefix if present (e.g., "v3.3.0 .0" → "3.3.0 .0")
80+ # Strip 'v' prefix if present (e.g., "v3.3.1 .0" → "3.3.1 .0")
8181 return tag .lstrip ("v" ) if tag else None
8282 except requests .exceptions .ConnectionError :
8383 logger .warning ("[!] No internet connection — cannot check software version" )
@@ -96,7 +96,7 @@ def is_software_up_to_date(local_version: str, remote_version: str) -> bool:
9696
9797 Args:
9898 local_version: Local tool version (e.g., '3.0.0')
99- remote_version: Remote release version (e.g., '3.3.0 .0')
99+ remote_version: Remote release version (e.g., '3.3.1 .0')
100100
101101 Returns:
102102 True if local version matches (or is newer than) remote, False otherwise
0 commit comments