mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] Only call HAL_Report when initializing SmartDashboard (#4006)
This commit is contained in:
@@ -19,6 +19,8 @@ using namespace frc;
|
||||
|
||||
namespace {
|
||||
struct Instance {
|
||||
Instance() { HAL_Report(HALUsageReporting::kResourceType_SmartDashboard, 0); }
|
||||
|
||||
detail::ListenerExecutor listenerExecutor;
|
||||
std::shared_ptr<nt::NetworkTable> table =
|
||||
nt::NetworkTableInstance::GetDefault().GetTable("SmartDashboard");
|
||||
@@ -28,7 +30,6 @@ struct Instance {
|
||||
} // namespace
|
||||
|
||||
static Instance& GetInstance() {
|
||||
HAL_Report(HALUsageReporting::kResourceType_SmartDashboard, 0);
|
||||
static Instance instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user