Skip to content

Commit 2dcac69

Browse files
committed
Merge branch 'develop'
2 parents 5bae290 + 12fd86e commit 2dcac69

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)