From: asterix Date: Mon, 5 Oct 2009 18:51:53 +0000 (+0000) Subject: Fix include. Add log. X-Git-Tag: 2.3.0~51 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4e554f69f2f6f560ee788833da4304a0d45b853b;p=bertos.git Fix include. Add log. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3032 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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))