From 0158bf10207f81d8983fa049fcda50667e84a90f Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 27 Jan 2018 16:50:53 +0100 Subject: [PATCH] removed unsued PJON_ID_SCAN_TIME and local variable --- PJONDefines.h | 2 -- PJONSlave.h | 1 - 2 files changed, 3 deletions(-) diff --git a/PJONDefines.h b/PJONDefines.h index 0957acd888..4b5e637244 100644 --- a/PJONDefines.h +++ b/PJONDefines.h @@ -162,8 +162,6 @@ limitations under the License. */ #define PJON_MAX_ACQUIRE_ID_COLLISIONS 10 /* Delay between device id acquisition and self request (1000 milliseconds) */ #define PJON_ACQUIRE_ID_DELAY 1000 -/* Maximum id scan time (10 seconds) */ -#define PJON_ID_SCAN_TIME 10000000 /* Master free id broadcast response interval (100 milliseconds) */ #define PJON_ID_REQUEST_INTERVAL 100000 /* Master ID_REQUEST and ID_NEGATE timeout */ diff --git a/PJONSlave.h b/PJONSlave.h index 89482d8296..343f9ab263 100644 --- a/PJONSlave.h +++ b/PJONSlave.h @@ -99,7 +99,6 @@ class PJONSlave : public PJON { return _slave_error(PJON_ID_ACQUISITION_FAIL, PJON_FAIL); PJON_DELAY_MICROSECONDS(PJON_RANDOM(PJON_ACQUIRE_ID_DELAY)); - uint32_t time = PJON_MICROS(); char msg = PJON_ID_ACQUIRE; char head = this->config | required_config | PJON_ACK_REQ_BIT; this->_device_id = PJON_NOT_ASSIGNED;