Skip to content

Commit cc10fc5

Browse files
committed
Refactor average values
1 parent 59eb957 commit cc10fc5

17 files changed

+24
-65
lines changed

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

BrainFlow/Channels/Channel2.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(2);
29-
Device.ClearEEG(2);
30-
return tempValue;
28+
return Device.GetEEG(2);
3129
}
3230
}
3331

BrainFlow/Channels/Channel3.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(3);
29-
Device.ClearEEG(3);
30-
return tempValue;
28+
return Device.GetEEG(3);
3129
}
3230
}
3331

0 commit comments

Comments
 (0)