Permalink
Browse files

Sent the NewLine value to the end of the message,

  • Loading branch information...
IAmCoder committed May 31, 2014
1 parent e1c0c41 commit 592891fcd9631a9863a27ba644205a7d9734218f
@@ -2253,14 +2253,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe ThinkGear EEG"
"ProductCode" = "8:{0F9BCCCD-06A7-4BFB-8D56-1F2C4B1DE328}"
"PackageCode" = "8:{F3B34264-F4DC-45D6-9416-309C50482920}"
"ProductCode" = "8:{81FF8CEA-C435-4E98-A696-0AE9ED58EC82}"
"PackageCode" = "8:{ECB01318-14E2-4655-8DA7-A5CF7C75FA32}"
"UpgradeCode" = "8:{9B1E2A82-9D73-4675-9717-2311206ABC4E}"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.1.2"
"ProductVersion" = "8:1.1.3"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucidcode.com/Contact"
@@ -664,24 +664,12 @@ private void TriggerArduino()
arduinoPort.BaudRate = 9600;
arduinoPort.Open();

try
{
byte[] b = BitConverter.GetBytes(Convert.ToInt32(Device.ArduinoOn));
arduinoPort.Write(b, 0, 4);
}
catch (Exception ex)
{ arduinoPort.Write(Device.ArduinoOn); }
arduinoPort.WriteLine(Device.ArduinoOn);

int arduinoDelay = Convert.ToInt32(Device.ArduinoDelay) * 60000;
Thread.Sleep(arduinoDelay);

try
{
byte[] b = BitConverter.GetBytes(Convert.ToInt32(Device.ArduinoOff));
arduinoPort.Write(b, 0, 4);
}
catch (Exception ex)
{ arduinoPort.Write(Device.ArduinoOff); }
arduinoPort.WriteLine(Device.ArduinoOff);

arduinoPort.Close();
arduinoPort.Dispose();
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.2.0")]
[assembly: AssemblyFileVersion("1.1.2.0")]
[assembly: AssemblyVersion("1.1.3.0")]
[assembly: AssemblyFileVersion("1.1.3.0")]

0 comments on commit 592891f

Please sign in to comment.