mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[wpilibc] Add doxygen deprecated tag to deprecated methods (#2336)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2018-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. */
|
||||
@@ -34,6 +34,9 @@ class Watchdog {
|
||||
/**
|
||||
* Watchdog constructor.
|
||||
*
|
||||
* @deprecated use unit-safe version instead.
|
||||
* Watchdog(units::second_t timeout, std::function<void()> callback)
|
||||
*
|
||||
* @param timeout The watchdog's timeout in seconds with microsecond
|
||||
* resolution.
|
||||
* @param callback This function is called when the timeout expires.
|
||||
@@ -74,6 +77,9 @@ class Watchdog {
|
||||
/**
|
||||
* Sets the watchdog's timeout.
|
||||
*
|
||||
* @deprecated use the unit safe version instead.
|
||||
* SetTimeout(units::second_t timeout)
|
||||
*
|
||||
* @param timeout The watchdog's timeout in seconds with microsecond
|
||||
* resolution.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user