Skip to content

Commit 12fd86e

Browse files
committed
Fix #1 (stack over flow error)
1 parent 46cf9c0 commit 12fd86e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SensingKitLib/src/main/java/org/sensingkit/sensingkitlib/modules/SensorModuleManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public void deregisterSensorModule(SensorModuleType moduleType) throws SKExcepti
100100

101101
public boolean isSensorModuleRegistered(SensorModuleType moduleType) throws SKException {
102102

103-
return (getSensorModule(moduleType) != null);
103+
int sensorIndex = moduleType.ordinal();
104+
return (mSensors.get(sensorIndex) != null);
104105
}
105106

106107
public boolean isSensorModuleSensing(SensorModuleType moduleType) throws SKException {

0 commit comments

Comments
 (0)