소스 검색

delay on disconnecting

cuu 5 년 전
부모
커밋
10a91108dd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Menu/GameShell/10_Settings/Bluetooth/__init__.py

+ 3 - 1
Menu/GameShell/10_Settings/Bluetooth/__init__.py

@@ -238,7 +238,9 @@ class BleInfoPage(Page):
             dev.Disconnect()
         except Exception,e:
             print(str(e))        
-       
+        
+        pygame.time.delay(300)
+        self.ReturnToUpLevelPage()
         self._Screen.Draw()
         self._Screen.SwapAndShow()