Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
JiapengLi committed Mar 19, 2018
2 parents c2cbac6 + 24951ba commit d58a108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ json
*.bak
bak
*.sublime-workspace
*.orig
3 changes: 2 additions & 1 deletion lw/lw.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,10 @@ int lw_auto_add(lw_frame_t *frame, uint8_t *msg, int len)
int ret, id;
uint32_t cnt;

memset(&endnode.appeui, 0, sizeof(endnode));
memset(&endnode, 0, sizeof(endnode));

memcpy(plmic.buf, msg+len-4, 4);

switch(frame->mhdr.bits.mtype){
case LW_MTYPE_JOIN_REQUEST:
lw_key.aeskey = lw_dft_appkey;
Expand Down

0 comments on commit d58a108

Please sign in to comment.