mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user