mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 11:23:49 +08:00
Merge remote-tracking branch 'sunnypilot/master' into SunnyPilot
This commit is contained in:
@@ -29,7 +29,7 @@ BUTTON_TEXT_COLOR = {
|
||||
ButtonStyle.PRIMARY: rl.Color(228, 228, 228, 255),
|
||||
ButtonStyle.DANGER: rl.Color(228, 228, 228, 255),
|
||||
ButtonStyle.TRANSPARENT: rl.BLACK,
|
||||
ButtonStyle.ACTION: rl.Color(0, 0, 0, 255),
|
||||
ButtonStyle.ACTION: rl.BLACK,
|
||||
ButtonStyle.LIST_ACTION: rl.Color(228, 228, 228, 255),
|
||||
}
|
||||
|
||||
|
||||
@@ -101,8 +101,8 @@ class WifiManager:
|
||||
"""Connect to the DBus system bus."""
|
||||
try:
|
||||
self.bus = await MessageBus(bus_type=BusType.SYSTEM).connect()
|
||||
if not await self._find_wifi_device():
|
||||
raise ValueError("No Wi-Fi device found")
|
||||
while not await self._find_wifi_device():
|
||||
await asyncio.sleep(1)
|
||||
|
||||
await self._setup_signals(self.device_path)
|
||||
self.active_ap_path = await self.get_active_access_point()
|
||||
|
||||
Reference in New Issue
Block a user