fix: 注册应答增加GWAddr非零校验,防止LoRa自收误判注册成功
This commit is contained in:
@@ -937,6 +937,8 @@ static void GWRevHandler(void)
|
|||||||
|
|
||||||
switch(SGCP.GWRS485Rx.rCmdGWToMD) {
|
switch(SGCP.GWRS485Rx.rCmdGWToMD) {
|
||||||
case GWTOMD_CMD_LOGIN:{
|
case GWTOMD_CMD_LOGIN:{
|
||||||
|
if(is_all_byte(GFHeader->GWAddr, sizeof(GFHeader->GWAddr), 0x00) == true)
|
||||||
|
return;
|
||||||
SGCP.LoginOk = PayLoad[0];
|
SGCP.LoginOk = PayLoad[0];
|
||||||
if(SGCP.LoginOk == true)
|
if(SGCP.LoginOk == true)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user