Skip to content

Commit 8da7f8b

Browse files
committed
20151212_CORE2
1 parent 813c5b3 commit 8da7f8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/MySensors/core/MyTransport.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ inline void transportProcess() {
9696
(type != I_GET_NONCE_RESPONSE && type != I_GET_NONCE && type != I_REQUEST_SIGNING &&
9797
type != I_ID_REQUEST && type != I_ID_RESPONSE &&
9898
type != I_FIND_PARENT && type != I_FIND_PARENT_RESPONSE &&
99-
type != I_HEARTBEAT))) {
99+
type != I_HEARTBEAT && type != I_HEARTBEAT_RESPONSE))) {
100100
if (!mGetSigned(_msg)) {
101101
// Got unsigned message that should have been signed
102102
debug(PSTR("no sign\n"));
@@ -415,7 +415,8 @@ boolean transportSendRoute(MyMessage &message) {
415415
(mGetCommand(message) != C_INTERNAL ||
416416
(type != I_GET_NONCE && type != I_GET_NONCE_RESPONSE && type != I_REQUEST_SIGNING &&
417417
type != I_ID_REQUEST && type != I_ID_RESPONSE &&
418-
type != I_FIND_PARENT && type != I_FIND_PARENT_RESPONSE))) {
418+
type != I_FIND_PARENT && type != I_FIND_PARENT_RESPONSE &&
419+
type != I_HEARTBEAT && type != I_HEARTBEAT_RESPONSE))) {
419420
// Send nonce-request
420421
_signingNonceStatus=SIGN_WAITING_FOR_NONCE;
421422
if (!_sendRoute(build(_msgTmp, _nc.nodeId, message.destination, message.sensor, C_INTERNAL, I_GET_NONCE, false).set(""))) {

0 commit comments

Comments
 (0)