lcd: spi init with phase=1

This commit is contained in:
2026-02-03 20:04:41 +08:00
parent 212bd6b2e1
commit 978919de2a
3 changed files with 7 additions and 7 deletions

View File

@@ -271,7 +271,9 @@ async def fetch_weather_data(city=None):
advice = wdata.get("advice", [])
lunar = wdata.get("lunar", None)
ip = wifi_manager.get_ip()
if city == "N/A":
advice.append("城市配置错误")
advice.append(wifi_manager.get_ip())
display.update_ui(
city,
@@ -279,7 +281,6 @@ async def fetch_weather_data(city=None):
advice,
aqi,
lunar,
ip,
envdat={"t": t, "rh": rh, "co2": co2, "pm": pm, "ap": ap},
)
else: