[sim] Make HalSim DS extension a no-op (#8872)

This way this doesn't crash until we get real support added.
This commit is contained in:
Thad House
2026-05-07 20:04:37 -07:00
committed by GitHub
parent 8832d6a7c2
commit 0af65ea787

View File

@@ -180,6 +180,11 @@ static void SetupEventLoop(wpi::net::uv::Loop& loop) {
static std::unique_ptr<wpi::net::EventLoopRunner> eventLoopRunner;
void ThisIsAHackDontCallThis() {
eventLoopRunner = std::make_unique<wpi::net::EventLoopRunner>();
eventLoopRunner->ExecAsync(SetupEventLoop);
}
/*----------------------------------------------------------------------------
** Main entry point. We will start listen threads going, processing
** against our driver station packet
@@ -203,10 +208,6 @@ int HALSIM_InitExtension(void) {
singleByte = std::make_unique<Buffer>("0");
eventLoopRunner = std::make_unique<wpi::net::EventLoopRunner>();
eventLoopRunner->ExecAsync(SetupEventLoop);
std::puts("DriverStationSocket Initialized!");
return 0;
}