Skip to content

Commit a2fd306

Browse files
authored
Merge pull request #2 from lucidcode/feature/json-settings
Use json settings
2 parents a345813 + cc10fc5 commit a2fd306

23 files changed

+235
-300
lines changed
File renamed without changes.

BrainFlow/BrainFlow.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<Reference Include="System.Xml" />
9191
</ItemGroup>
9292
<ItemGroup>
93+
<Compile Include="UserSettings.cs" />
9394
<Compile Include="Board.cs" />
9495
<Compile Include="Channels\Channel16.cs" />
9596
<Compile Include="Channels\Channel15.cs" />
@@ -122,7 +123,7 @@
122123
</EmbeddedResource>
123124
</ItemGroup>
124125
<ItemGroup>
125-
<None Include="brainflow_boards.json">
126+
<None Include="BrainFlow.Boards.lsd">
126127
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
127128
</None>
128129
<None Include="packages.config" />

BrainFlow/Channels/Channel1.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(1);
29-
Device.ClearEEG(1);
30-
return tempValue;
28+
return Device.GetEEG(1);
3129
}
3230
}
3331

BrainFlow/Channels/Channel10.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(10);
29-
Device.ClearEEG(10);
30-
return tempValue;
28+
return Device.GetEEG(10);
3129
}
3230
}
3331

BrainFlow/Channels/Channel11.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(11);
29-
Device.ClearEEG(11);
30-
return tempValue;
28+
return Device.GetEEG(11);
3129
}
3230
}
3331

BrainFlow/Channels/Channel12.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(12);
29-
Device.ClearEEG(12);
30-
return tempValue;
28+
return Device.GetEEG(12);
3129
}
3230
}
3331

BrainFlow/Channels/Channel13.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(13);
29-
Device.ClearEEG(13);
30-
return tempValue;
28+
return Device.GetEEG(13);
3129
}
3230
}
3331

BrainFlow/Channels/Channel14.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(14);
29-
Device.ClearEEG(14);
30-
return tempValue;
28+
return Device.GetEEG(14);
3129
}
3230
}
3331

BrainFlow/Channels/Channel15.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(15);
29-
Device.ClearEEG(15);
30-
return tempValue;
28+
return Device.GetEEG(15);
3129
}
3230
}
3331

BrainFlow/Channels/Channel16.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public override double Value
2525
{
2626
get
2727
{
28-
double tempValue = Device.GetEEG(16);
29-
Device.ClearEEG(16);
30-
return tempValue;
28+
return Device.GetEEG(16);
3129
}
3230
}
3331

0 commit comments

Comments
 (0)