2025-02-07 12:37:23 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
|
|
2026-01-04 00:41:53 -08:00
|
|
|
#include "wpi/hal/UsageReporting.hpp"
|
2025-02-07 12:37:23 -08:00
|
|
|
|
|
|
|
|
#include <fmt/format.h>
|
|
|
|
|
|
2026-02-20 18:28:57 -05:00
|
|
|
void HAL_ReportUsage(std::string_view resource, int instanceNumber,
|
|
|
|
|
std::string_view data) {
|
|
|
|
|
HAL_ReportUsage(fmt::format("{}[{}]", resource, instanceNumber), data);
|
2025-02-07 12:37:23 -08:00
|
|
|
}
|