|
@@ -101,7 +101,8 @@ static void CheckMenuButton_entry(void *parameter) {
|
|
if (XbeeConst_NetAddress>0) XbeeConst_NetAddress--;
|
|
if (XbeeConst_NetAddress>0) XbeeConst_NetAddress--;
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- if (WeightConst_SBType==4) XbeeConst_NetAddress=2; else XbeeConst_NetAddress=13;
|
|
|
|
|
|
+ //if (WeightConst_SBType==4) XbeeConst_NetAddress=2; else XbeeConst_NetAddress=13;
|
|
|
|
+ XbeeConst_NetAddress=13;
|
|
}
|
|
}
|
|
setNetAddress();
|
|
setNetAddress();
|
|
write_Flash("WL", &XbeeConst_NetAddress, sizeof(XbeeConst_NetAddress));
|
|
write_Flash("WL", &XbeeConst_NetAddress, sizeof(XbeeConst_NetAddress));
|
|
@@ -185,7 +186,8 @@ static void CheckMenuButton_entry(void *parameter) {
|
|
{
|
|
{
|
|
if (XbeeConst_NetAddress<13 && (WeightConst_SBType!=4&&WeightConst_SBType!=6))
|
|
if (XbeeConst_NetAddress<13 && (WeightConst_SBType!=4&&WeightConst_SBType!=6))
|
|
XbeeConst_NetAddress++;
|
|
XbeeConst_NetAddress++;
|
|
- else if (XbeeConst_NetAddress<2 && (WeightConst_SBType==4))
|
|
|
|
|
|
+ //else if (XbeeConst_NetAddress<2 && (WeightConst_SBType==4))
|
|
|
|
+ else if (XbeeConst_NetAddress<13 && WeightConst_SBType==4)
|
|
XbeeConst_NetAddress++;
|
|
XbeeConst_NetAddress++;
|
|
else
|
|
else
|
|
XbeeConst_NetAddress=0;
|
|
XbeeConst_NetAddress=0;
|