Log
Dependents: oldheating gps motorhome heating
Diff: log.c
- Revision:
- 15:e490fce9b6ef
- Parent:
- 14:7fcd0d7d3b28
- Child:
- 16:5c41b457c7f3
--- a/log.c Sun Feb 04 11:34:09 2018 +0000 +++ b/log.c Thu Dec 06 16:05:51 2018 +0000 @@ -3,7 +3,7 @@ #include <stdio.h> #include <time.h> #include <stdbool.h> -#include "uart0.h" +#include "serialpc.h" #define BUFFER_LENGTH 0x4000 @@ -88,7 +88,7 @@ void LogInit(void (*tmFunctionParam)(struct tm* ptm), int baud) { useUart = baud; - if (useUart) Uart0Init(baud); + if (useUart) SerialPcInit(baud); tmFunction = tmFunctionParam; LogClear(); } @@ -97,7 +97,7 @@ if (!useUart) return; if (!LogUart) return; //Do nothing if uart is not enabled if (pUart == pPush) return; //Do nothing if all characters have been sent - int result = Uart0PutC(*pUart); //Attempt to write the character + int result = SerialPcPutC(*pUart); //Attempt to write the character if (result == 0) pUart = incrementPushPullPointer(pUart, buffer, BUFFER_LENGTH); //If the character was written to the uart then move to the next } int Log(char* snd)