Skip to content

Commit 54fbfa5

Browse files
committed
Fix preset 3, focus buttons
1 parent 57bd661 commit 54fbfa5

File tree

3 files changed

+69
-12
lines changed

3 files changed

+69
-12
lines changed

ViscaControllerPtz/Form1.Designer.cs

Lines changed: 48 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ViscaControllerPtz/Form1.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private void button16_Click(object sender, EventArgs e)
469469

470470
private void button15_Click(object sender, EventArgs e)
471471
{
472-
byte[] buff = { 0x81, 0x01, 0x04, 0x3F, 0x03, 0x04, 0xFF };
472+
byte[] buff = { 0x81, 0x01, 0x04, 0x3F, 0x02, 0x03, 0xFF };
473473
this.serialPort1.Write(buff, 0, buff.Length);
474474
}
475475

@@ -574,5 +574,23 @@ private void btnMenu_Click(object sender, EventArgs e)
574574
byte[] buff = { 0x81, 0x01, 0x06, 0x06, 0x02, 0xFF };
575575
this.serialPort1.Write(buff, 0, buff.Length);
576576
}
577+
578+
private void btnFocusAuto_Click(object sender, EventArgs e)
579+
{
580+
byte[] buff = { 0x81, 0x01, 0x04, 0x38, 0x02, 0xFF };
581+
this.serialPort1.Write(buff, 0, buff.Length);
582+
}
583+
584+
private void btnFocusNear_Click(object sender, EventArgs e)
585+
{
586+
byte[] buff = { 0x81, 0x01, 0x04, 0x08, 0x03, 0xFF };
587+
this.serialPort1.Write(buff, 0, buff.Length);
588+
}
589+
590+
private void btnFocusFar_Click(object sender, EventArgs e)
591+
{
592+
byte[] buff = { 0x81, 0x01, 0x04, 0x08, 0x02, 0xFF };
593+
this.serialPort1.Write(buff, 0, buff.Length);
594+
}
577595
}
578596
}

ViscaControllerPtz/ViscaControllerPtz.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<UpdatePeriodically>false</UpdatePeriodically>
2323
<UpdateRequired>false</UpdateRequired>
2424
<MapFileExtensions>true</MapFileExtensions>
25-
<ApplicationRevision>1</ApplicationRevision>
26-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
25+
<ApplicationRevision>0</ApplicationRevision>
26+
<ApplicationVersion>1.0.2.%2a</ApplicationVersion>
2727
<UseApplicationTrust>false</UseApplicationTrust>
2828
<BootstrapperEnabled>true</BootstrapperEnabled>
2929
</PropertyGroup>

0 commit comments

Comments
 (0)