mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
artf4107: Removed most "Init" functions from classes
They were either replaced with delegating constructors or merged into the only constructor in the class. Change-Id: I3d35139f6ab23c719433a9f76942b02a3b07ddac
This commit is contained in:
@@ -10,11 +10,13 @@
|
||||
#include "WPIErrors.h"
|
||||
|
||||
/**
|
||||
* Create an instance of a DigitalOutput.
|
||||
* Creates a digital output given a channel. Common creation routine for all
|
||||
* constructors.
|
||||
* Create an instance of a digital output.
|
||||
* Create a digital output given a channel.
|
||||
*
|
||||
* @param channel The digital channel 0-9 are on-board, 10-25 are on the MXP
|
||||
* port
|
||||
*/
|
||||
void DigitalOutput::InitDigitalOutput(uint32_t channel) {
|
||||
DigitalOutput::DigitalOutput(uint32_t channel) {
|
||||
char buf[64];
|
||||
|
||||
if (!CheckDigitalChannel(channel)) {
|
||||
@@ -32,15 +34,6 @@ void DigitalOutput::InitDigitalOutput(uint32_t channel) {
|
||||
HALReport(HALUsageReporting::kResourceType_DigitalOutput, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of a digital output.
|
||||
* Create a digital output given a channel.
|
||||
*
|
||||
* @param channel The digital channel 0-9 are on-board, 10-25 are on the MXP
|
||||
* port
|
||||
*/
|
||||
DigitalOutput::DigitalOutput(uint32_t channel) { InitDigitalOutput(channel); }
|
||||
|
||||
/**
|
||||
* Free the resources associated with a digital output.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user