Browse Source

gateway bug fix

cuu 5 years ago
parent
commit
57540caab6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Menu/GameShell/10_Settings/GateWay/gateway_page.go

+ 4 - 2
Menu/GameShell/10_Settings/GateWay/gateway_page.go

@@ -277,8 +277,10 @@ func (self *GateWayPage) ApplyGateWay( gateway string ) bool {
           tmp,err := strconv.Atoi(parts[3])
           if err == nil {
             if tmp == 0 {
-              tmp = tmp +1 
-            }else if tmp > 0 {
+              tmp = tmp + 1  
+            }else if tmp == 1 {
+              tmp = tmp + 1
+            }else if tmp > 1 {
               tmp = tmp -1
             }
             parts[3] = strconv.Itoa(tmp)