Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc855bc commit 7c06309Copy full SHA for 7c06309
MeshBase.h
@@ -5,6 +5,8 @@
5
#include "RF24.h"
6
#include "LinkedList.h"
7
8
+#define PACKED __attribute__ ((packed))
9
+
10
class MeshBase
11
{
12
public:
@@ -24,7 +26,7 @@ class MeshBase
24
26
bool split_enabled : 1;
25
27
uint8_t split_part : 7;
28
uint32_t address_from;
- };
29
+ } PACKED;
30
31
// -- Message types --
32
enum message_type {
@@ -65,7 +67,7 @@ class MeshBase
65
67
uint8_t application_capabilities; // What type of data do I expose
66
68
uint16_t num_peers; // Number of direct peers
69
uint32_t uptime; // Seconds since boot
70
71
72
};
73
0 commit comments