Skip to content

Commit 7eaefc0

Browse files
committed
调整输出
1 parent c756910 commit 7eaefc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ private static string GetTranslation(string key)
2626
}
2727

2828
private readonly string fastboot_log_path = Path.Combine(Global.log_path, "fastboot.txt");
29+
private readonly string update_status = Path.Combine(Global.log_path, "update.txt");
2930
private string output = "";
3031

3132
public WiredflashView()
@@ -341,7 +342,7 @@ private async void StartTXTFlash(object sender, RoutedEventArgs args)
341342
}
342343
}
343344
string slot = "";
344-
await Fastboot($"-s {Global.thisdevice} getvar snapshot-update-status");
345+
FileHelper.Write(update_status, await CallExternalProgram.Fastboot($"-s {Global.thisdevice} getvar snapshot-update-status"));
345346
string active = await CallExternalProgram.Fastboot($"-s {Global.thisdevice} getvar current-slot");
346347
if (active.Contains("current-slot: a"))
347348
{

0 commit comments

Comments
 (0)