fix(gps): allow GPS runtime without motion hardware

This commit is contained in:
Trail Mate Dev committed 2026-09-18 17:55:11 +08:00
1 parent 45367642da
commit 4f74e5359b
1 file changed
+1 -6
@@ -19,7 +19,6 @@
#include "platform/esp/arduino_common/gps/track_recorder.h"
#include "platform/esp/arduino_common/storage/sd_card_runtime.h"
#include "platform/esp/arduino_common/storage/storage_runtime.h"
#include "platform/esp/arduino_common/geocaching/browse_runtime.h"
#include "platform/esp/arduino_common/team/crypto/team_crypto.h"
#include "platform/esp/arduino_common/team/event/team_app_data_event_bus_bridge.h"
#include "platform/esp/arduino_common/team/event/team_event_bus_sink.h"
@@ -278,7 +277,6 @@ app::ChatServicesBundle create_chat_services(const app::AppConfig& config,
}
}
bundle.service = std::unique_ptr<chat::ChatService>(
new chat::ChatService(*bundle.model, *bundle.mesh_runtime, *bundle.store, config.mesh_protocol));
if (!bundle.service)
@@ -297,9 +295,6 @@ app::ChatServicesBundle create_chat_services(const app::AppConfig& config,
{
bundle.start_deferred_storage = start_deferred_storage;
}
if (lora_board)
::platform::esp::arduino_common::geocaching::browse_runtime::configure(
*static_cast<chat::MeshAdapterRouter*>(bundle.mesh_runtime.get()), *lora_board);
return bundle;
}
@@ -397,4 +392,4 @@ app::AppContextPlatformBindings makeAppContextPlatformBindings()
return bindings;
}
} // namespace platform::esp::arduino_common
} // namespace platform::esp::arduino_common