Permalink
Browse files

Made the spacing less generous.

  • Loading branch information...
IAmCoder committed Jan 23, 2014
1 parent 605f9a7 commit bf996a33c07a1a7346e5ec19001a1af51b87f295
@@ -2210,14 +2210,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe ThinkGear EEG"
"ProductCode" = "8:{762CCE56-BC00-4D73-8900-CFA6F1FA1992}"
"PackageCode" = "8:{AFD6BC56-A0A1-44E0-894A-59AEFEC6DA12}"
"ProductCode" = "8:{FD30C0A8-CF53-4205-B3C8-A21FE7FF50B3}"
"PackageCode" = "8:{417BBF1E-6993-43F7-AC3A-A38ED5A1065E}"
"UpgradeCode" = "8:{9B1E2A82-9D73-4675-9717-2311206ABC4E}"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.0.8"
"ProductVersion" = "8:1.0.9"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucidcode.com/Contact"
@@ -590,9 +590,11 @@ public override bool Initialize()
};

List<int> m_arrHistory = new List<int>();
Boolean FirstTick = true;
Boolean FirstTick = false;
Boolean SpaceSent = true;
int TicksSinceSpace = 0;
Boolean Started = false;
int PreliminaryTicks = 0;

public override double Value
{
@@ -604,6 +606,17 @@ public override double Value
if (tempValue > 999) { tempValue = 999; }
if (tempValue < 0) { tempValue = 0; }

if (!Started)
{
PreliminaryTicks++;
if (PreliminaryTicks > 10)
{
Started = true;
}

return 0;
}

int signalLength = 0;
int dotHeight = 500;
int dashHeight = 900;
@@ -647,20 +660,20 @@ public override double Value
int fivePointValue = 0;
for (int i = nextOffset; i < m_arrHistory.Count; i++)
{
for (int ii = i; ii < m_arrHistory.Count; ii++)
for (int x = i; x < m_arrHistory.Count; x++)
{
if (m_arrHistory[ii] > fivePointValue)
if (m_arrHistory[x] > fivePointValue)
{
fivePointValue = m_arrHistory[ii];
fivePointValue = m_arrHistory[x];
}

if (m_arrHistory[ii] < 300)
if (m_arrHistory[x] < 300)
{
nextOffset = ii + 1;
nextOffset = x + 1;
break;
}

if (ii == m_arrHistory.Count - 1)
if (x == m_arrHistory.Count - 1)
{
nextOffset = -1;
}
@@ -707,6 +720,7 @@ public override double Value
signal = "";
m_arrHistory.Clear();
SpaceSent = false;
TicksSinceSpace = 0;
}
}
catch (Exception ex)
@@ -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.0.8.0")]
[assembly: AssemblyFileVersion("1.0.8.0")]
[assembly: AssemblyVersion("1.0.9.0")]
[assembly: AssemblyFileVersion("1.0.9.0")]

0 comments on commit bf996a3

Please sign in to comment.