From 4e554f69f2f6f560ee788833da4304a0d45b853b Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 5 Oct 2009 18:51:53 +0000 Subject: [PATCH] Fix include. Add log. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3032 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/nmeap/src/nmeap01.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/bertos/net/nmeap/src/nmeap01.c b/bertos/net/nmeap/src/nmeap01.c index d0e0fcd2..c3912428 100644 --- a/bertos/net/nmeap/src/nmeap01.c +++ b/bertos/net/nmeap/src/nmeap01.c @@ -26,29 +26,27 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * see the file COPYING for terms of the licnese */ -#include +#include #include -#include +#include #include #include "../inc/nmeap.h" +#include + #define assert(x) ASSERT(x) -/* - * Removed to compile in BeRTOS environment. - * - * #include - * #include - * #include - * #include - * #include - * #include - * - * #include "nmeap.h" - * - */ +#include "cfg/cfg_nmea.h" + +#define LOG_LEVEL NMEA_LOG_LEVEL +#define LOG_FORMAT NMEA_LOG_FORMAT +#include +#ifdef _DEBUG + #undef NDEBUG + #define printf(str,...) LOG_INFO(str, ## __VA_ARGS__) +#endif /* this only works if you are sure you have an upper case hex digit */ #define HEXTOBIN(ch) ((ch <= '9') ? ch - '0' : ch - ('A' - 10)) -- 2.25.1