Skip to content

Commit

Permalink
Fixed issue with not displaying all firmware versions for certain mod…
Browse files Browse the repository at this point in the history
…ules properly.
  • Loading branch information
eriklins committed May 23, 2023
1 parent 3d69c6d commit 648b1d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/unit1.lfm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Form1: TForm1
Left = 2470
Left = 2496
Height = 459
Top = 63
Top = 200
Width = 568
AllowDropFiles = True
Caption = 'Online XCompiler Tool'
Expand Down Expand Up @@ -121,7 +121,7 @@ object Form1: TForm1
Top = 16
Width = 32
Alignment = taRightJustify
Caption = 'V1.4'
Caption = 'V1.5'
Color = clDefault
Font.CharSet = ANSI_CHARSET
Font.Color = clGray
Expand All @@ -140,7 +140,7 @@ object Form1: TForm1
Top = 35
Width = 112
Alignment = taRightJustify
Caption = '(C) Erik Lins, 2022'
Caption = '(C) Erik Lins, 2023'
Color = clDefault
Font.CharSet = ANSI_CHARSET
Font.Color = clGray
Expand Down
4 changes: 2 additions & 2 deletions src/unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ procedure TForm1.FormCreate(Sender: TObject);
SelectFirmwareBox.Clear;
for i := 0 to XComp.xNofFirmware[0] - 1 do
begin
SelectFirmwareBox.Items.Add(XComp.xFirmware[i][0][0] + ' (' +
XComp.xFirmware[i][0][1] + ' ' + XComp.xFirmware[i][0][2] + ')');
SelectFirmwareBox.Items.Add(XComp.xFirmware[0][i][0] + ' (' +
XComp.xFirmware[0][i][1] + ' ' + XComp.xFirmware[0][i][2] + ')');
end;
SelectFirmwareBox.ItemIndex := 0;

Expand Down
6 changes: 3 additions & 3 deletions src/xcomp.pas
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ interface
xCompPage, s: string;
p: integer;
xNofDevices: integer;
xDevice: array [0..19] of string; // extend if more than 20 devices
xNofFirmware: array [0..19] of integer;
xFirmware: array [0..19, 0..10, 0..2] of string; // extend if more than 20 fw versions
xDevice: array [0..29] of string; // extend if more than 20 devices
xNofFirmware: array [0..29] of integer;
xFirmware: array [0..29, 0..29, 0..2] of string; // extend if more than 20 fw versions
xModuleIdx, xFirmwareIdx: Integer;
xField, xProxy, xFileName: String;

Expand Down

0 comments on commit 648b1d4

Please sign in to comment.