diff --git a/main/application.cc b/main/application.cc index 92c90381..dda50fb1 100644 --- a/main/application.cc +++ b/main/application.cc @@ -66,6 +66,7 @@ void Application::CheckNewVersion() { int retry_count = 0; while (true) { + auto display = Board::GetInstance().GetDisplay(); if (!ota_.CheckVersion()) { retry_count++; if (retry_count >= MAX_RETRY) {