Skip to content

Commit 6da96e7

Browse files
committed
adding back time handler
was missing in dev branch
1 parent 663c038 commit 6da96e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/MySensors/MySensor.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ boolean MySensor::process() {
506506
findParentNode();
507507
sendRoute(build(msg, nc.nodeId, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_INTERNAL, I_CHILDREN,false).set(""));
508508
}
509+
} else if (type == I_TIME) {
510+
if (timeCallback != NULL) {
511+
// Deliver time to callback
512+
timeCallback(msg.getULong());
513+
}
509514
}
510515
return false;
511516
}

0 commit comments

Comments
 (0)