mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] Remove Utility.h (#3376)
Change last 2 uses of wpi_assert to throw error instead.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "frc/Errors.h"
|
||||
#include "frc/SensorUtil.h"
|
||||
#include "frc/Utility.h"
|
||||
#include "frc/smartdashboard/SendableBuilder.h"
|
||||
#include "frc/smartdashboard/SendableRegistry.h"
|
||||
|
||||
@@ -119,7 +118,7 @@ void PWM::SetPeriodMultiplier(PeriodMultiplier mult) {
|
||||
HAL_SetPWMPeriodScale(m_handle, 0, &status); // Don't squelch any outputs
|
||||
break;
|
||||
default:
|
||||
wpi_assert(false);
|
||||
throw FRC_MakeError(err::InvalidParameter, "PeriodMultiplier value");
|
||||
}
|
||||
|
||||
FRC_CheckErrorStatus(status, "SetPeriodMultiplier");
|
||||
|
||||
Reference in New Issue
Block a user