Fixed a bug in Detector.java
This commit is contained in:
parent
569bd43163
commit
37617dbd54
@ -21,7 +21,7 @@ abstract public class Detector {
|
||||
|
||||
|
||||
/** Triggers onDetectionListener - call this to trigger violation/alarm */
|
||||
private void reportViolation(String detectorID, String detectionType, float amplitude) {
|
||||
public void reportViolation(String detectorID, String detectionType, float amplitude) {
|
||||
if (listener != null) {
|
||||
DetectionReport detectionReport = new DetectionReport(detectorID, detectionType, amplitude);
|
||||
listener.onDetection(detectionReport);
|
||||
|
Loading…
x
Reference in New Issue
Block a user