Make mesh also broadcast getrelease()

This commit is contained in:
Stefan `Sec` Zehl 2012-01-27 00:03:14 +01:00
parent 58d35a7330
commit 7b5f8739a2
1 changed files with 5 additions and 2 deletions

View File

@ -172,10 +172,13 @@ void mesh_sendloop(void){
// Update [T]ime packet
MO_TIME_set(meshbuffer[0].pkt,getSeconds());
MO_GEN_set(meshbuffer[0].pkt,meshgen);
if(GLOBAL(privacy)==0)
if(GLOBAL(privacy)==0){
uint32touint8p(GetUUID32(),meshbuffer[0].pkt+26);
else
uint32touint8p(getrelease(),meshbuffer[0].pkt+22);
}else{
uint32touint8p(0,meshbuffer[0].pkt+26);
uint32touint8p(0,meshbuffer[0].pkt+22);
};
MO_BODY(meshbuffer[0].pkt)[4]=meshnice;