mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix various duty cycle bugs (#2047)
This commit is contained in:
committed by
Peter Johnson
parent
1f6850adf2
commit
384d00f9e6
@@ -78,7 +78,7 @@ double DutyCycle::GetOutput() const {
|
||||
|
||||
unsigned int DutyCycle::GetOutputRaw() const {
|
||||
int32_t status = 0;
|
||||
auto retVal = HAL_GetDutyCycleOutput(m_handle, &status);
|
||||
auto retVal = HAL_GetDutyCycleOutputRaw(m_handle, &status);
|
||||
wpi_setErrorWithContext(status, HAL_GetErrorMessage(status));
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user