Skip to content

Commit 879f925

Browse files
committed
Fix up flashing sequence progress
1 parent 40b5b51 commit 879f925

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

TheAirBlow.Thor.Shell/Commands/ProtoOdin/ErasePartition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public FailInfo RunCommand(State state, List<string> args) {
4141
task.Value(info.SentBytes);
4242
switch (info.State) {
4343
case Odin.FlashProgressInfo.StateEnum.Flashing:
44-
task.Description($"[green]Flashing sequence {info.SequenceIndex} / {info.TotalSequences} onto {entry.Partition}[/]");
44+
task.Description($"[green]Flashing sequence {info.SequenceIndex + 1} / {info.TotalSequences} onto {entry.Partition}[/]");
4545
break;
4646
case Odin.FlashProgressInfo.StateEnum.Sending:
47-
task.Description($"[green]Sending flash sequence {info.SequenceIndex} / {info.TotalSequences}[/]");
47+
task.Description($"[green]Sending flash sequence {info.SequenceIndex + 1} / {info.TotalSequences}[/]");
4848
break;
4949
}
5050
}, length);

TheAirBlow.Thor.Shell/Commands/ProtoOdin/FlashFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public FailInfo RunCommand(State state, List<string> args) {
5858
task.Value(info.SentBytes);
5959
switch (info.State) {
6060
case Odin.FlashProgressInfo.StateEnum.Flashing:
61-
task.Description($"[green]Flashing sequence {info.SequenceIndex} / {info.TotalSequences} onto {entry.Partition}[/]");
61+
task.Description($"[green]Flashing sequence {info.SequenceIndex + 1} / {info.TotalSequences} onto {entry.Partition}[/]");
6262
break;
6363
case Odin.FlashProgressInfo.StateEnum.Sending:
64-
task.Description($"[green]Sending flash sequence {info.SequenceIndex} / {info.TotalSequences}[/]");
64+
task.Description($"[green]Sending flash sequence {info.SequenceIndex + 1} / {info.TotalSequences}[/]");
6565
break;
6666
}
6767
});

TheAirBlow.Thor.Shell/Commands/ProtoOdin/FlashTar.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public FailInfo RunCommand(State state, List<string> args) {
8787
task.Value(info.SentBytes);
8888
switch (info.State) {
8989
case Odin.FlashProgressInfo.StateEnum.Flashing:
90-
task.Description($"[green]Flashing sequence {info.SequenceIndex} / {info.TotalSequences} onto {pitEntry.Partition}[/]");
90+
task.Description($"[green]Flashing sequence {info.SequenceIndex + 1} / {info.TotalSequences} onto {pitEntry.Partition}[/]");
9191
break;
9292
case Odin.FlashProgressInfo.StateEnum.Sending:
93-
task.Description($"[green]Sending flash sequence {info.SequenceIndex} / {info.TotalSequences}[/]");
93+
task.Description($"[green]Sending flash sequence {info.SequenceIndex + 1} / {info.TotalSequences}[/]");
9494
break;
9595
}
9696
});

0 commit comments

Comments
 (0)