Skip to content

Commit 827c349

Browse files
Remove unneeded #ifdef in SoftwareSerial
The debugPulse function definition already checks for _DEBUG, resulting in an empty function definiton and the function call being optimized away.
1 parent 0a6072d commit 827c349

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libraries/SoftwareSerial/SoftwareSerial.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ void SoftwareSerial::recv()
175175
}
176176
else
177177
{
178-
#if _DEBUG // for scope: pulse pin as overflow indictator
179178
DebugPulse(_DEBUG_PIN1, 1);
180-
#endif
181179
_buffer_overflow = true;
182180
}
183181

0 commit comments

Comments
 (0)