Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update: 提示描述更改
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Aug 11, 2023
1 parent 4382115 commit b7461ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AirISP/AirISP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.2.5.0</Version>
<Version>1.2.6.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 5 additions & 3 deletions AirISP/BasicOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ public static bool ResetBootloader()
case "default_reset":
//windows下面时序不准确,不容易进boot模式
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
RuntimeInformation.OSArchitecture == Architecture.X64)
RuntimeInformation.OSArchitecture == Architecture.X64 &&
File.Exists("rst2boot.exe"))
{
serial.Close();
var p = new ProcessStartInfo("rst2boot.exe",serial.PortName) { RedirectStandardOutput = true };
Expand Down Expand Up @@ -235,8 +236,9 @@ public static bool ResetBootloader()
resetEvent.Reset();
ColorfulConsole.LogLine("");
ColorfulConsole.WarnLine(Tool.IsZh() ? "自动进入boot模式失败,操作超时,结束操作...\r\n" +
"你可以尝试手动进入boot模式:按住BOOT按键不要松开,按一下RST复位,重新尝试下载操作\r\n" +
"(直到下载成功前,都不要松开BOOT按键,下载完成后再松开,然后按一下RST复位)" : "fail to reset device to boot status, timeout, exit...");
"你可以尝试手动进入boot模式:\r\n" +
"拔掉USB、按住BOOT按键不要松开、插入USB,重新尝试下载操作。\r\n" +
"下载完成后,再松开松开BOOT按键,此时再按一下RST复位即可。" : "fail to reset device to boot status, timeout, exit...");
Environment.Exit(0);
return false;
}
Expand Down

0 comments on commit b7461ab

Please sign in to comment.