Skip to content

Commit d530dd3

Browse files
committed
Merge pull request arduino#95 from tekka007/tekka/patch
adding back time handler
2 parents 663c038 + 6da96e7 commit d530dd3

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)