Skip to content

Commit

Permalink
No functional change
Browse files Browse the repository at this point in the history
Unused parameter removal & end of file tidying by the Arduino IDE
  • Loading branch information
Asbelos committed Oct 27, 2024
1 parent 535dcab commit c50f3e0
Show file tree
Hide file tree
Showing 33 changed files with 23 additions and 34 deletions.
1 change: 0 additions & 1 deletion CommandDistributor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,3 @@ void CommandDistributor::setVirtualLCDSerial(Print * stream) {
Print* CommandDistributor::virtualLCDSerial=&USB_SERIAL;
byte CommandDistributor::virtualLCDClient=0xFF;
byte CommandDistributor::rememberVLCDClient=0;

1 change: 0 additions & 1 deletion DCCACK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,3 @@ void DCCACK::checkAck(byte sentResetsSincePacket) {
}
ackPulseStart=0; // We have detected a too-short or too-long pulse so ignore and wait for next leading edge
}

2 changes: 2 additions & 0 deletions DCCTimerAVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ void DCCTimer::DCCEXanalogWriteFrequency(uint8_t pin, uint32_t f) {
}
void DCCTimer::DCCEXanalogWriteFrequencyInternal(uint8_t pin, uint32_t fbits) {
#if defined(ARDUINO_AVR_UNO)
(void)fbits;
(void) pin;
// Not worth doin something here as:
// If we are on pin 9 or 10 we are on Timer1 and we can not touch Timer1 as that is our DCC source.
// If we are on pin 5 or 6 we are on Timer 0 ad we can not touch Timer0 as that is millis() etc.
Expand Down
1 change: 0 additions & 1 deletion DCCTimerESP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,3 @@ void ADCee::begin() {
}

#endif //ESP32

1 change: 0 additions & 1 deletion EXRAIL2Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,3 @@ bool RMFT2::parseSlash(Print * stream, byte & paramCount, int16_t p[]) {
return false;
}
}

2 changes: 1 addition & 1 deletion EXRAILSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ class EXRAILSensor {
bool onChange;
byte latchDelay;
};
#endif
#endif
2 changes: 1 addition & 1 deletion I2CManager_NonBlocking.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,4 @@ void I2CManagerClass::handleInterrupt() {
}
}

#endif
#endif
2 changes: 1 addition & 1 deletion I2CManager_Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ void I2CManagerClass::queueRequest(I2CRB *req) {
***************************************************************************/
void I2CManagerClass::loop() {}

#endif
#endif
1 change: 0 additions & 1 deletion IODevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,4 +627,3 @@ bool ArduinoPins::fastReadDigital(uint8_t pin) {
#endif
return result;
}

2 changes: 1 addition & 1 deletion IO_AnalogueInputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ class ADS111x: public IODevice {
uint8_t _nextState;
};

#endif // io_analogueinputs_h
#endif // io_analogueinputs_h
1 change: 0 additions & 1 deletion IO_DCCAccessory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ void DCCAccessoryDecoder::_display() {
DIAG(F("DCCAccessoryDecoder Configured on Vpins:%u-%u Addresses %d/%d-%d/%d)"), _firstVpin, _firstVpin+_nPins-1,
ADDRESS(_packedAddress), SUBADDRESS(_packedAddress), ADDRESS(endAddress), SUBADDRESS(endAddress));
}

1 change: 0 additions & 1 deletion IO_EncoderThrottle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,3 @@ const byte _DIR_MASK = 0x30;
void EncoderThrottle::_display() {
DIAG(F("DRIVE vpin %d loco %d notch %d"),_firstVpin,_locoid,_notch);
}

2 changes: 1 addition & 1 deletion IO_ExampleSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ class IO_ExampleSerial : public IODevice {

};

#endif // IO_EXAMPLESERIAL_H
#endif // IO_EXAMPLESERIAL_H
2 changes: 1 addition & 1 deletion IO_HALDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ class HALDisplay : public IODevice, public DisplayInterface {

};

#endif // IO_HALDisplay_H
#endif // IO_HALDisplay_H
2 changes: 1 addition & 1 deletion IO_MCP23008.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ class MCP23008 : public GPIOBase<uint8_t> {

};

#endif
#endif
2 changes: 1 addition & 1 deletion IO_MCP23017.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ class MCP23017 : public GPIOBase<uint16_t> {

};

#endif
#endif
3 changes: 2 additions & 1 deletion IO_NeoPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class NeoPixel : public IODevice {

// loop called by HAL supervisor
void _loop(unsigned long currentMicros) override {
(void)currentMicros;
if (!_showPendimg) return;
byte showBuffer[]={SEESAW_NEOPIXEL_BASE,SEESAW_NEOPIXEL_SHOW};
I2CManager.write(_I2CAddress,showBuffer,sizeof(showBuffer));
Expand Down Expand Up @@ -291,7 +292,7 @@ class NeoPixel : public IODevice {
}


void transmit(uint16_t pixel, bool show=true) {
void transmit(uint16_t pixel) {
byte buffer[]={SEESAW_NEOPIXEL_BASE,SEESAW_NEOPIXEL_BUF,0x00,0x00,0x00,0x00,0x00};
uint16_t offset= pixel * _bytesPerPixel;
buffer[2]=(byte)(offset>>8);
Expand Down
2 changes: 1 addition & 1 deletion IO_PCA9685pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ class PCA9685pwm : public IODevice {

};

#endif
#endif
2 changes: 1 addition & 1 deletion IO_PCF8574.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ class PCF8574 : public GPIOBase<uint8_t> {
uint8_t inputBuffer[1];
};

#endif
#endif
2 changes: 1 addition & 1 deletion IO_PCF8575.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ class PCF8575 : public GPIOBase<uint16_t> {
uint8_t inputBuffer[2];
};

#endif
#endif
1 change: 0 additions & 1 deletion IO_Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
//
const uint8_t FLASH Servo::_bounceProfile[30] =
{0,2,3,7,13,33,50,83,100,83,75,70,65,60,60,65,74,84,100,83,75,70,70,72,75,80,87,92,97,100};

2 changes: 1 addition & 1 deletion IO_Servo.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ class Servo : IODevice {
}
};

#endif
#endif
2 changes: 1 addition & 1 deletion IO_TCA8418.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,4 @@ class TCA8418 : public IODevice {
};
};

#endif
#endif
2 changes: 0 additions & 2 deletions IO_TM1638.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,3 @@ void TM1638::test(){
}

}


2 changes: 1 addition & 1 deletion IO_TouchKeypad.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ class TouchKeypad : public IODevice {

};

#endif // IO_TOUCHKEYPAD_H
#endif // IO_TOUCHKEYPAD_H
2 changes: 1 addition & 1 deletion IO_duinoNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ class IO_DNOU8 {
}

};
#endif
#endif
2 changes: 1 addition & 1 deletion IO_trainbrains.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ class Trainbrains02 : public GPIOBase<uint16_t> {

};

#endif
#endif
2 changes: 1 addition & 1 deletion KeywordHasher.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ constexpr uint32_t operator""_s7(const char * keyword, size_t len)
{
return CompiletimeSeg7(keyword,0*len,4);
}
#endif
#endif
2 changes: 1 addition & 1 deletion LiquidCrystal_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ void LiquidCrystal_I2C::expanderWrite(uint8_t value) {
rb.wait();
outputBuffer[0] = value | _backlightval;
I2CManager.write(_Addr, outputBuffer, 1, &rb); // Write command asynchronously
}
}
2 changes: 0 additions & 2 deletions StringBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ size_t StringBuffer::write(uint8_t b) {
_buffer[_pos_write]='\0';
return 1;
}


2 changes: 1 addition & 1 deletion StringBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class StringBuffer : public Print {
char _buffer[buffer_max+2];
};

#endif
#endif
1 change: 0 additions & 1 deletion TrackManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,4 +697,3 @@ TRACK_MODE TrackManager::getMode(byte t) {
int16_t TrackManager::returnDCAddr(byte t) {
return (trackDCAddr[t]);
}

1 change: 0 additions & 1 deletion Turnouts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,4 +527,3 @@
StringFormatter::send(stream, F("<H %d LCN %d>\n"), _turnoutData.id,
!_turnoutData.closed);
}

0 comments on commit c50f3e0

Please sign in to comment.