From f3776f1c5162336cd3709d9a0350d41d8401b8f6 Mon Sep 17 00:00:00 2001 From: cuu Date: Sun, 6 Jan 2019 22:02:08 +0800 Subject: [PATCH] gateway switch bug fix --- Menu/GameShell/10_Settings/GateWay/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Menu/GameShell/10_Settings/GateWay/__init__.py b/Menu/GameShell/10_Settings/GateWay/__init__.py index 9a3fddd..31d6876 100644 --- a/Menu/GameShell/10_Settings/GateWay/__init__.py +++ b/Menu/GameShell/10_Settings/GateWay/__init__.py @@ -213,18 +213,18 @@ class GateWayPage(Page): parts[3] = str(tmp) ipaddress = ".".join(parts) os.system("sudo route add default gw "+ipaddress) - return true + return True else: if is_wifi_connected_now(): os.system("sudo dhclient wlan0") - return true + return True else: self._Screen._MsgBox.SetText("Wi-Fi is not connected") self._Screen._MsgBox.Draw() self._Screen.SwapAndShow() - return false + return False - return false + return False def OnLoadCb(self):