delay on disconnecting

This commit is contained in:
cuu 2018-08-22 11:46:43 +08:00
parent e0e6a6e3e7
commit 10a91108dd

View File

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