From dbe1e6f466eea1ae8e5cafd45734b9e13be6a5b1 Mon Sep 17 00:00:00 2001 From: Thad House Date: Wed, 15 Jan 2020 21:33:35 -0800 Subject: [PATCH] Fix missing SetDutyCycleSimDevice on Rio (#2274) --- hal/src/main/native/athena/DutyCycle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hal/src/main/native/athena/DutyCycle.cpp b/hal/src/main/native/athena/DutyCycle.cpp index 1c1a678cb8..3749a2b43f 100644 --- a/hal/src/main/native/athena/DutyCycle.cpp +++ b/hal/src/main/native/athena/DutyCycle.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -75,6 +75,9 @@ void HAL_FreeDutyCycle(HAL_DutyCycleHandle dutyCycleHandle) { dutyCycleHandles->Free(dutyCycleHandle); } +void HAL_SetDutyCycleSimDevice(HAL_EncoderHandle handle, + HAL_SimDeviceHandle device) {} + int32_t HAL_GetDutyCycleFrequency(HAL_DutyCycleHandle dutyCycleHandle, int32_t* status) { auto dutyCycle = dutyCycleHandles->Get(dutyCycleHandle);