|
@@ -253,6 +253,7 @@ begin
|
|
|
sps.setDelayCallback(@delayCallback);
|
|
|
addHeaderText;
|
|
|
renumberGrid();
|
|
|
+ cbTPSVersion.ItemIndex:=0;
|
|
|
cbTPSVersionChange(Sender);
|
|
|
acStop.Enabled := False;
|
|
|
ToolButton18.Align := alRight;
|
|
@@ -1217,6 +1218,10 @@ begin
|
|
|
acUpload.Enabled := False;
|
|
|
Label5.Visible := False;
|
|
|
btnTone.Visible := False;
|
|
|
+ ADC1.Value:=0;
|
|
|
+ ADC1.MaxValue:=15;
|
|
|
+ ADC2.Value:=0;
|
|
|
+ ADC2.MaxValue:=15;
|
|
|
end;
|
|
|
if (cbTPSVersion.ItemIndex = 1) then
|
|
|
begin
|
|
@@ -1239,6 +1244,10 @@ begin
|
|
|
acUpload.Enabled := False;
|
|
|
Label5.Visible := False;
|
|
|
btnTone.Visible := False;
|
|
|
+ ADC1.Value:=0;
|
|
|
+ ADC1.MaxValue:=15;
|
|
|
+ ADC2.Value:=0;
|
|
|
+ ADC2.MaxValue:=15;
|
|
|
end;
|
|
|
if ((cbTPSVersion.ItemIndex = 2) or (cbTPSVersion.ItemIndex = 3)) then
|
|
|
begin
|
|
@@ -1273,6 +1282,10 @@ begin
|
|
|
|
|
|
EditE.Visible := True;
|
|
|
EditF.Visible := True;
|
|
|
+ ADC1.Value:=0;
|
|
|
+ ADC1.MaxValue:=255;
|
|
|
+ ADC2.Value:=0;
|
|
|
+ ADC2.MaxValue:=255;
|
|
|
end;
|
|
|
cbCommand.Items.Clear;
|
|
|
sps.getCommands(cbCommand.Items);
|
|
@@ -1509,6 +1522,7 @@ begin
|
|
|
MCSLabel.Caption := InfoBox.versionText;
|
|
|
end;
|
|
|
|
|
|
+
|
|
|
procedure TForm1.renumberGrid;
|
|
|
var
|
|
|
x, i: integer;
|