mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
No functional change
Unused parameter removal & end of file tidying by the Arduino IDE
This commit is contained in:
parent
535dcabcec
commit
c50f3e016c
|
@ -377,4 +377,3 @@ void CommandDistributor::setVirtualLCDSerial(Print * stream) {
|
|||
Print* CommandDistributor::virtualLCDSerial=&USB_SERIAL;
|
||||
byte CommandDistributor::virtualLCDClient=0xFF;
|
||||
byte CommandDistributor::rememberVLCDClient=0;
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -324,4 +324,3 @@ void ADCee::begin() {
|
|||
}
|
||||
|
||||
#endif //ESP32
|
||||
|
||||
|
|
|
@ -363,4 +363,3 @@ bool RMFT2::parseSlash(Print * stream, byte & paramCount, int16_t p[]) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -627,4 +627,3 @@ bool ArduinoPins::fastReadDigital(uint8_t pin) {
|
|||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -141,4 +141,3 @@ const byte _DIR_MASK = 0x30;
|
|||
void EncoderThrottle::_display() {
|
||||
DIAG(F("DRIVE vpin %d loco %d notch %d"),_firstVpin,_locoid,_notch);
|
||||
}
|
||||
|
||||
|
|
|
@ -206,6 +206,7 @@ private:
|
|||
|
||||
// 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));
|
||||
|
@ -291,7 +292,7 @@ private:
|
|||
}
|
||||
|
||||
|
||||
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);
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -213,5 +213,3 @@ void TM1638::test(){
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -41,5 +41,3 @@ size_t StringBuffer::write(uint8_t b) {
|
|||
_buffer[_pos_write]='\0';
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -697,4 +697,3 @@ TRACK_MODE TrackManager::getMode(byte t) {
|
|||
int16_t TrackManager::returnDCAddr(byte t) {
|
||||
return (trackDCAddr[t]);
|
||||
}
|
||||
|
||||
|
|
|
@ -527,4 +527,3 @@
|
|||
StringFormatter::send(stream, F("<H %d LCN %d>\n"), _turnoutData.id,
|
||||
!_turnoutData.closed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user