v6 rotational walking :D

This commit is contained in:
2018-11-14 22:22:38 +01:00
parent b505fe4618
commit 131529576c
9 changed files with 167 additions and 18 deletions
+10 -3
View File
@@ -35,9 +35,16 @@ public class Serial {
{
serialPort = new SerialPort(@"\\.\" + "COM10", 115200);
serialPort.Open();
serialPort.DiscardOutBuffer();
serialPort.DiscardInBuffer();
try
{
serialPort.Open();
serialPort.DiscardOutBuffer();
serialPort.DiscardInBuffer();
}
catch
{
enabled = false;
}
}
if (serialPort is SerialPort)