]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpextlog.c
Merge branch 'libopencm3' of cu.loc:git/irmp into libopencm3
[irmp.git] / irmpextlog.c
index 78537e9b92e411285b3b9bb1784dd98e3f05be67..2845aa545c4c6e786ac1dd0f54c3585d109a8cfb 100644 (file)
@@ -1,7 +1,7 @@
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * irmpextlog.c - external logging\r
  *\r
- * $Id: irmpextlog.c,v 1.1 2012/02/16 10:40:08 fm Exp $\r
+ * $Id: irmpextlog.c,v 1.6 2017/02/17 09:13:06 fm Exp $\r
  *\r
  * If you cannot use the internal UART logging routine, adapt the\r
  * source below for your application. The following implementation\r
@@ -13,7 +13,7 @@
  * (at your option) any later version.\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r
  */\r
-#include "irmpconfig.h"\r
+#include "irmp.h"\r
 \r
 #if IRMP_EXT_LOGGING == 1\r
 \r
@@ -36,7 +36,7 @@ void
 initextlog (void)                                               // reset all data to default, only during init\r
 {\r
     unsigned char i;\r
\r
+\r
     for (i = 0; i < loglen; i++)\r
     {\r
         logdata[i] = 0;\r
@@ -68,7 +68,7 @@ sendextlog (unsigned char data)
             }\r
 \r
             mUSBUSARTTxRam((unsigned char *) &logdata, loglen); // send all Data to main Seoftware\r
-      \r
+\r
             logindex = 3;                                       // reset index\r
             bitindex = 7;                                       // reset bit position\r
             logdata[logindex] = 0;                              // reset value of new logindex to 0\r
@@ -99,3 +99,11 @@ sendextlog (unsigned char data)
 }\r
 \r
 #endif //IRMP_EXT_LOGGING\r
+\r
+#if defined(PIC_C18)\r
+static void\r
+dummy (void)\r
+{\r
+  // Only to avoid C18 compiler error\r
+}\r
+#endif\r