mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[ci] Upgrade wpiformat (#8124)
See https://github.com/wpilibsuite/styleguide/pull/312
This commit is contained in:
@@ -398,8 +398,9 @@ void HAL_SetCTREPCMOneShotDuration(HAL_CTREPCMHandle handle, int32_t index,
|
||||
}
|
||||
|
||||
std::scoped_lock lock{pcm->lock};
|
||||
pcm->oneShot.sol10MsPerUnit[index] = (std::min)(
|
||||
static_cast<uint32_t>(durMs) / 10, static_cast<uint32_t>(0xFF));
|
||||
pcm->oneShot.sol10MsPerUnit[index] =
|
||||
(std::min)(static_cast<uint32_t>(durMs) / 10,
|
||||
static_cast<uint32_t>(0xFF));
|
||||
HAL_WriteCANPacketRepeating(pcm->canHandle, pcm->oneShot.sol10MsPerUnit, 8,
|
||||
Control3, SendPeriod, status);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ class SimCallbackRegistry : public impl::SimCallbackRegistryBase {
|
||||
*/
|
||||
#define HAL_SIMCALLBACKREGISTRY_DEFINE_NAME(NAME) \
|
||||
static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \
|
||||
Get##NAME##Name() { \
|
||||
Get##NAME##Name() { \
|
||||
return #NAME; \
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ class SimDataValue final : public impl::SimDataValueBase<T, MakeValue> {
|
||||
*/
|
||||
#define HAL_SIMDATAVALUE_DEFINE_NAME(NAME) \
|
||||
static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \
|
||||
Get##NAME##Name() { \
|
||||
Get##NAME##Name() { \
|
||||
return #NAME; \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user