mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[hal] Change usage reporting to string-based (#7763)
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <string>
|
||||
|
||||
#include <hal/Counter.h>
|
||||
#include <hal/FRCUsageReporting.h>
|
||||
#include <hal/UsageReporting.h>
|
||||
#include <wpi/StackTrace.h>
|
||||
#include <wpi/sendable/SendableBuilder.h>
|
||||
|
||||
@@ -27,7 +27,7 @@ UpDownCounter::UpDownCounter(int channel, EdgeConfiguration configuration)
|
||||
|
||||
Reset();
|
||||
|
||||
HAL_Report(HALUsageReporting::kResourceType_Counter, channel + 1);
|
||||
HAL_ReportUsage("IO", channel, "UpDownCounter");
|
||||
wpi::SendableRegistry::Add(this, "UpDown Counter", channel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user