Remove unused code and add pmd check (#395)

This commit is contained in:
Austin Shalit
2016-12-23 11:20:13 -08:00
committed by Peter Johnson
parent cc246bb9ac
commit 8f67f2c24c
19 changed files with 56 additions and 21 deletions

View File

@@ -59,6 +59,11 @@ AnalogOutput::AnalogOutput(int channel) {
*/
AnalogOutput::~AnalogOutput() { HAL_FreeAnalogOutputPort(m_port); }
/**
* Get the channel of this AnalogOutput.
*/
int AnalogOutput::GetChannel() { return m_channel; }
/**
* Set the value of the analog output.
*

View File

@@ -159,8 +159,8 @@ bool I2C::ReadOnly(int count, uint8_t* buffer) {
* @param registerAddress The register to write on all devices on the bus.
* @param data The value to write to the devices.
*/
[[gnu::warning("I2C::Broadcast() is not implemented.")]] void I2C::Broadcast(
int registerAddress, uint8_t data) {}
// [[gnu::warning("I2C::Broadcast() is not implemented.")]] void I2C::Broadcast(
// int registerAddress, uint8_t data) {}
/**
* Verify that a device's registers contain expected values.