Skip to content

Commit

Permalink
fix wireless mode not recognize on new pairing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
msartore committed Apr 2, 2024
1 parent 13610e1 commit f30e709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ATA-GUI/Classes/ATA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace ATA_GUI.Classes
{
internal class ATA
{
public static readonly string CURRENTVERSION = "v3.5.0";
public static readonly string CURRENTVERSION = "v3.5.1";
public static readonly string IPFileName = "IPList.txt";

public HashSet<string> IPList { get; } = new HashSet<string>();
Expand Down
2 changes: 1 addition & 1 deletion ATA-GUI/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ private async Task<bool> deviceListExtractor(bool isAdb)
{
name = ConsoleProcess.adbFastbootCommandR("-s " + Regex.Replace(id, @"\s", "") + " shell getprop ro.product.model", 0);

if (Regex.Match(id, "(\\b25[0-5]|\\b2[0-4][0-9]|\\b[01]?[0-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}").Success)
if (Regex.Match(id, "(\\b25[0-5]|\\b2[0-4][0-9]|\\b[01]?[0-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}").Success || id.Contains("tcp"))
{
deviceConnection = DeviceConnection.WIRELESS;
}
Expand Down

0 comments on commit f30e709

Please sign in to comment.