When sending commands replace spaces with \u007f

This commit is contained in:
Ed Gonzalez 2015-08-04 14:44:18 -05:00
parent 7eacc2472e
commit 88dd1d94e7

View file

@ -630,19 +630,19 @@ namespace CODEC2_GUI
switch (text)
{
case "destinationRptrIn":
cmd = "set destination_rptr=" + txt.Text;
cmd = "set destination_rptr=" + txt.Text.Replace(" ", "\u007f");
break;
case "departureRptrIn":
cmd = "set departure_rptr=" + txt.Text;
cmd = "set departure_rptr=" + txt.Text.Replace(" ", "\u007f");
break;
case "companionCallIn":
cmd = "set companion_call=" + txt.Text;
cmd = "set companion_call=" + txt.Text.Replace(" ", "\u007f");
break;
case "ownCall1In":
cmd = "set own_call1=" + txt.Text;
cmd = "set own_call1=" + txt.Text.Replace(" ", "\u007f");
break;
case "ownCall2In":
cmd = "set own_call2=" + txt.Text;
cmd = "set own_call2=" + txt.Text.Replace(" ", "\u007f");
break;
default:
break;