Permalink
Browse files

Fixed the sleep stage value.

  • Loading branch information...
IAmCoder committed Oct 5, 2014
1 parent 21f79f6 commit 50b33abaaba2cbc67305c8329d5d325dcadebc73
@@ -166,7 +166,7 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_7477139A985373FCCAE741F7BAE81CE6"
"OwnerKey" = "8:_74CC5CEA548AAB471EE4049C7020BD21"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -178,7 +178,7 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_74CC5CEA548AAB471EE4049C7020BD21"
"OwnerKey" = "8:_7477139A985373FCCAE741F7BAE81CE6"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -278,7 +278,7 @@
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"FrameworkVersion" = "8:3.5.30729 "
"FrameworkVersion" = "8:3.5.30729 "
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
@@ -941,15 +941,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe Zeo"
"ProductCode" = "8:{AB685DC7-C274-4B7F-AFDB-21663E9BA839}"
"PackageCode" = "8:{3C99FFBC-46AE-46E3-AC31-3959F7EC78CF}"
"ProductCode" = "8:{262B8926-F9D8-47FB-98A7-A7619797BFAD}"
"PackageCode" = "8:{BDC46156-C47C-4463-A0D2-0B44AF42FA19}"
"UpgradeCode" = "8:{7FC45659-EDA9-401F-A2DB-7EE30232BDE8}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:0.9.9"
"ProductVersion" = "8:1.0.0"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucid-code.com/Support"
BIN +0 Bytes (100%) Lucid Scribe - Zeo.suo
Binary file not shown.
@@ -152,11 +152,9 @@ private static void UpdateZeo()
}
}

channels = zeoStream.ReadStageDataFromLastPosition(ref stageLastPosition, 1);
if (channels.Length > 0)
{
StageValue = channels[0].Values[0] * -100;
}
int stage = 0;
channels = zeoStream.ReadStageDataFromLastPosition(ref stageLastPosition, 64, ref stage);
StageValue = stage * -100;
if (disposed) { break; }

Thread.Sleep(1000);
@@ -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("0.9.9.0")]
[assembly: AssemblyFileVersion("0.9.9.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -331,7 +331,7 @@ public ChannelData[] ReadFrequencyDataFromLastPosition(ref int lastPosition, int
return freqData;
}

public ChannelData[] ReadStageDataFromLastPosition(ref int lastPosition, int len)
public ChannelData[] ReadStageDataFromLastPosition(ref int lastPosition, int len, ref int stage)
{
this.rwLock.AcquireReaderLock(Timeout.Infinite);

@@ -343,6 +343,10 @@ public ChannelData[] ReadStageDataFromLastPosition(ref int lastPosition, int len
stageData[j] = new ChannelData(2);
if (zeoMessage.SleepStage != null)
{
if (zeoMessage.SleepStage != ZeoSleepStage.Undefined & zeoMessage.SleepStage != ZeoSleepStage.Undefined0)
{
stage = -(int)zeoMessage.SleepStage;
}
stageData[j].Values[0] = -(int)zeoMessage.SleepStage;
stageData[j].Values[1] = zeoMessage.SoundAlarmVolume;
j++;

0 comments on commit 50b33ab

Please sign in to comment.