Skip to content

Commit b95b4c8

Browse files
committed
Remove unused param warning
1 parent 6e2f074 commit b95b4c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/SoftwareSerial/SoftwareSerial.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ volatile uint8_t SoftwareSerial::_receive_buffer_head = 0;
5757
//
5858
// This function generates a brief pulse
5959
// for debugging or measuring on an oscilloscope.
60+
#if _DEBUG
6061
inline void DebugPulse(uint8_t pin, uint8_t count)
6162
{
62-
#if _DEBUG
6363
volatile uint8_t *pport = portOutputRegister(digitalPinToPort(pin));
6464

6565
uint8_t val = *pport;
@@ -68,8 +68,10 @@ inline void DebugPulse(uint8_t pin, uint8_t count)
6868
*pport = val | digitalPinToBitMask(pin);
6969
*pport = val;
7070
}
71-
#endif
7271
}
72+
#else
73+
inline void DebugPulse(uint8_t, uint8_t) {}
74+
#endif
7375

7476
//
7577
// Private methods

0 commit comments

Comments
 (0)