Skip to content

Commit

Permalink
Removed time from header. Added reserved byte for future use.
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jun 15, 2011
1 parent 7fb1a5a commit 13d52c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ bool RF24Network::write_to_pipe( uint16_t node, uint8_t pipe )
const char* RF24NetworkHeader::toString(void) const
{
static char buffer[45];
snprintf(buffer,sizeof(buffer),"id %04x from %04x to %04x type %c time %04x",id,from_node,to_node,type,time);
snprintf(buffer,sizeof(buffer),"id %04x from %04x to %04x type %c",id,from_node,to_node,type);
return buffer;
}

Expand Down
4 changes: 2 additions & 2 deletions RF24Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct RF24NetworkHeader
uint16_t from_node; /**< Logical address where the message was generated */
uint16_t to_node; /**< Logical address where the message is going */
uint16_t id; /**< Sequential message ID, incremented every message */
uint16_t time; /**< Time of the sending machine when sent. */
unsigned char type; /**< Type of the packet. 0-127 are user-defined types, 128-255 are reserved for system */
unsigned char reserved; /**< Reserved for future use */

static uint16_t next_id; /**< The message ID of the next message to be sent */

Expand All @@ -76,7 +76,7 @@ struct RF24NetworkHeader
*
* @param _to The logical node address where the message is going
*/
RF24NetworkHeader(uint16_t _to, unsigned char _type = 0): to_node(_to), id(next_id++), time(millis()&0xffff), type(_type&0x7f) {}
RF24NetworkHeader(uint16_t _to, unsigned char _type = 0): to_node(_to), id(next_id++), type(_type&0x7f) {}

/**
* Create debugging string
Expand Down

0 comments on commit 13d52c2

Please sign in to comment.