tell me who you are.
This commit is contained in:
parent
0f53352763
commit
5bcb504a1d
|
@ -6,6 +6,7 @@
|
||||||
#include "funk/nrf24l01p.h"
|
#include "funk/nrf24l01p.h"
|
||||||
#include "basic/byteorder.h"
|
#include "basic/byteorder.h"
|
||||||
#include "basic/random.h"
|
#include "basic/random.h"
|
||||||
|
#include "basic/config.h"
|
||||||
|
|
||||||
char meshgen=0; // Generation
|
char meshgen=0; // Generation
|
||||||
char meshincctr=0;
|
char meshincctr=0;
|
||||||
|
@ -83,6 +84,10 @@ void mesh_sendloop(void){
|
||||||
// Update [T]ime packet
|
// Update [T]ime packet
|
||||||
MO_TIME_set(meshbuffer[0].pkt,getSeconds());
|
MO_TIME_set(meshbuffer[0].pkt,getSeconds());
|
||||||
MO_GEN_set(meshbuffer[0].pkt,meshgen);
|
MO_GEN_set(meshbuffer[0].pkt,meshgen);
|
||||||
|
if(GLOBAL(provacy)==0)
|
||||||
|
uint32touint8p(GetUUID32(),MO_BODY(meshbuffer[0].pkt));
|
||||||
|
else
|
||||||
|
uint32touint8p(0,MO_BODY(meshbuffer[0].pkt));
|
||||||
|
|
||||||
for (int i=0;i<MESHBUFSIZE;i++){
|
for (int i=0;i<MESHBUFSIZE;i++){
|
||||||
if(!meshbuffer[i].flags&MF_USED)
|
if(!meshbuffer[i].flags&MF_USED)
|
||||||
|
|
Loading…
Reference in New Issue