Skip to content

Commit

Permalink
removed unsued PJON_ID_SCAN_TIME and local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Jan 27, 2018
1 parent 3443bc5 commit 0158bf1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions PJONDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion PJONSlave.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class PJONSlave : public PJON<Strategy> {
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;
Expand Down

0 comments on commit 0158bf1

Please # to comment.