Skip to content

Commit

Permalink
Fix type error in power measurement initialisation (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored Jan 24, 2022
1 parent 06b4509 commit f4f919d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public boolean initializeDevice() {
// Configure reporting
ZclAttribute attribute = serverClusterMeasurement
.getAttribute(ZclElectricalMeasurementCluster.ATTR_ACTIVEPOWER);
CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1).get();
CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1L).get();
handleReportingResponse(reportingResponse, POLLING_PERIOD_HIGH, REPORTING_PERIOD_DEFAULT_MAX);
} else {
pollingPeriod = POLLING_PERIOD_HIGH;
Expand Down

0 comments on commit f4f919d

Please sign in to comment.