X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp.git/blobdiff_plain/acd29fb9c846ac441a569186ab34a16a8ba7bb5a..f850d9dc0310997bbcfa076b113ac06765a18bfc:/irmpextlog.c diff --git a/irmpextlog.c b/irmpextlog.c index 7637351..2845aa5 100644 --- a/irmpextlog.c +++ b/irmpextlog.c @@ -1,7 +1,7 @@ /*--------------------------------------------------------------------------------------------------------------------------------------------------- * irmpextlog.c - external logging * - * $Id: irmpextlog.c,v 1.3 2012/06/05 12:00:46 fm Exp $ + * $Id: irmpextlog.c,v 1.6 2017/02/17 09:13:06 fm Exp $ * * If you cannot use the internal UART logging routine, adapt the * source below for your application. The following implementation @@ -36,7 +36,7 @@ void initextlog (void) // reset all data to default, only during init { unsigned char i; - + for (i = 0; i < loglen; i++) { logdata[i] = 0; @@ -68,7 +68,7 @@ sendextlog (unsigned char data) } mUSBUSARTTxRam((unsigned char *) &logdata, loglen); // send all Data to main Seoftware - + logindex = 3; // reset index bitindex = 7; // reset bit position logdata[logindex] = 0; // reset value of new logindex to 0 @@ -100,8 +100,10 @@ sendextlog (unsigned char data) #endif //IRMP_EXT_LOGGING +#if defined(PIC_C18) static void dummy (void) { // Only to avoid C18 compiler error } +#endif