Testing, nothing is working...

FossilOrigin-Name: 57c915fbdb3a98a422b740117a7ff11a64399c48e74df2b50863b760591c0049
This commit is contained in:
7u83@mail.ru 2014-07-27 10:37:37 +00:00
parent 326571d043
commit 5005aad7ad
1 changed files with 3 additions and 2 deletions

View File

@ -27,9 +27,10 @@ void lwmsg_init(struct lwmsg * lwmsg, uint8_t * buffer, uint8_t * macaddress,int
{
lwmsg->buffer=buffer;
memcpy (lwmsg->buffer,macaddress,6);
lwmsg->trnsprthdr=buffer+6;
lwmsg->trnsprthdr=buffer+0; //+6;
LWTH_SET_VERSION(lwmsg->trnsprthdr,LW_VERSION);
LWTH_SET_C_FLAG(lwmsg->trnsprthdr,1);
lwmsg->ctrlhdr=buffer+14;
lwmsg->msgelems=lwmsg->trnsprthdr+6;
lwmsg->pos=0;
}