Merge pull request #231 from mysensors/fix-MY_SIGNING_REQUEST_SIGNATURES-problem

Fix MY_SIGNING_REQUEST_SIGNATURES compile error
This commit is contained in:
Henrik Ekblad
2015-10-22 15:48:38 +02:00
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -28,8 +28,10 @@
#define MY_IS_GATEWAY (true)
#define MY_NODE_TYPE "gateway"
#elif defined(MY_REPEATER_FEATURE)
#define MY_IS_GATEWAY (false)
#define MY_NODE_TYPE "repeater"
#else
#define MY_IS_GATEWAY (false)
#define MY_NODE_TYPE "sensor"
#endif
+1 -1
View File
@@ -90,7 +90,7 @@ inline void transportProcess() {
#ifdef MY_SIGNING_REQUEST_SIGNATURES
if ((!MY_IS_GATEWAY || DO_SIGN(sender)) &&
destination == nc.nodeId &&
destination == _nc.nodeId &&
mGetLength(_msg) &&
!mGetAck(_msg) &&
(mGetCommand(_msg) != C_INTERNAL ||