Browse Source

Wrap long lines

pull/3070/head
Ben Batt 15 hours ago
parent
commit
c625779682
  1. 3
      examples/simple_room_server/MyMesh.cpp
  2. 3
      examples/simple_room_server/MyMesh.h

3
examples/simple_room_server/MyMesh.cpp

@ -75,7 +75,8 @@ void MyMesh::pushTopicToClient(ClientInfo *client) {
pushPostInternal(client, topic_timestamp, self_id, topic); pushPostInternal(client, topic_timestamp, self_id, topic);
} }
void MyMesh::pushPostInternal(ClientInfo* client, uint32_t timestamp, const mesh::Identity& author, const char* text) { void MyMesh::pushPostInternal(ClientInfo* client, uint32_t timestamp, const mesh::Identity& author,
const char* text) {
int len = 0; int len = 0;
memcpy(&reply_data[len], &timestamp, 4); memcpy(&reply_data[len], &timestamp, 4);
len += 4; // this is a PAST timestamp... but should be accepted by client len += 4; // this is a PAST timestamp... but should be accepted by client

3
examples/simple_room_server/MyMesh.h

@ -126,7 +126,8 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
void storePost(const mesh::Identity& author, const char* postData); void storePost(const mesh::Identity& author, const char* postData);
void pushPostToClient(ClientInfo* client, PostInfo& post); void pushPostToClient(ClientInfo* client, PostInfo& post);
void pushTopicToClient(ClientInfo* client); void pushTopicToClient(ClientInfo* client);
void pushPostInternal(ClientInfo* client, uint32_t timestamp, const mesh::Identity& author, const char* text); void pushPostInternal(ClientInfo* client, uint32_t timestamp, const mesh::Identity& author,
const char* text);
uint8_t getUnsyncedCount(ClientInfo* client); uint8_t getUnsyncedCount(ClientInfo* client);
bool processAck(const uint8_t *data); bool processAck(const uint8_t *data);
mesh::Packet* createSelfAdvert(); mesh::Packet* createSelfAdvert();

Loading…
Cancel
Save