mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-31 19:05:49 +00:00
* added RTCClock::getCurrentTimeUnique(), for when timestamps need to be unique (if temp rapid-fire)
This commit is contained in:
@@ -286,7 +286,7 @@ bool BaseChatMesh::sendLogin(const ContactInfo& recipient, const char* password,
|
||||
|
||||
int tlen;
|
||||
uint8_t temp[24];
|
||||
uint32_t now = getRTCClock()->getCurrentTime();
|
||||
uint32_t now = getRTCClock()->getCurrentTimeUnique();
|
||||
memcpy(temp, &now, 4); // mostly an extra blob to help make packet_hash unique
|
||||
if (recipient.type == ADV_TYPE_ROOM) {
|
||||
memcpy(&temp[4], &recipient.sync_since, 4);
|
||||
|
||||
Reference in New Issue
Block a user