Test Branch

This commit is contained in:
2019-09-08 22:28:32 -06:00
parent 5b5757c7d4
commit 1190c08729
7 changed files with 64 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ namespace Tello_Drone
var dronePortNumber = Convert.ToInt32(Console.ReadLine());
if (droneIpAddress != null)
{
_client = new UdpClient(droneIpAddress ?? throw new NullReferenceException($"{nameof(droneIpAddress)} was null."), dronePortNumber);
_client = new UdpClient(droneIpAddress, dronePortNumber);
_sendIpEndPoint = new IPEndPoint(IPAddress.Parse(droneIpAddress),
dronePortNumber);
}