Skip to content

Commit 820d8be

Browse files
committed
minor fix to exg constructor
1 parent 7c32f7b commit 820d8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ public ShimmerBluetooth(String devName, double samplingRate, int accelRange, int
705705
GSRRange = gsrRange;
706706
GyroRange = gyroRange;
707707
SetEnabledSensors = setEnabledSensors;
708-
Exg1RegArray = exg1configuration;
709-
Exg2RegArray = exg2configuration;
708+
Array.Copy(exg1configuration, Exg1RegArray, 10);
709+
Array.Copy(exg2configuration, Exg2RegArray, 10);
710710
LowPowerAccelEnabled = enableLowPowerAccel;
711711
LowPowerGyroEnabled = enableLowPowerGyro;
712712
LowPowerMagEnabled = enableLowPowerMag;

0 commit comments

Comments
 (0)