From 827c349a17e319d33f048ee402835bd40f9e42b6 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 8 Dec 2014 09:27:41 +0100 Subject: [PATCH] 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. --- libraries/SoftwareSerial/SoftwareSerial.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/SoftwareSerial/SoftwareSerial.cpp b/libraries/SoftwareSerial/SoftwareSerial.cpp index 2977b1c..b7dc5c2 100644 --- a/libraries/SoftwareSerial/SoftwareSerial.cpp +++ b/libraries/SoftwareSerial/SoftwareSerial.cpp @@ -175,9 +175,7 @@ void SoftwareSerial::recv() } else { -#if _DEBUG // for scope: pulse pin as overflow indictator DebugPulse(_DEBUG_PIN1, 1); -#endif _buffer_overflow = true; }