targets/plc_debug.c
changeset 969 1950fe687dde
parent 954 ab487d32ce9a
child 985 cd8dadcef426
--- a/targets/plc_debug.c	Wed Mar 06 19:23:58 2013 +0100
+++ b/targets/plc_debug.c	Fri Mar 08 00:15:28 2013 +0100
@@ -182,6 +182,7 @@
     BufferIterator(varp, vartype, 0);
 }
 
+extern void PLC_GetTime(IEC_TIME*);
 extern int TryEnterDebugSection(void);
 extern long AtomicCompareExchange(long*, long, long);
 extern long long AtomicCompareExchange64(long long* , long long , long long);
@@ -357,7 +358,7 @@
 static uint64_t LogCursor[LOG_LEVELS] = {0x0,0x0,0x0,0x0};
 
 /* Store one log message of give size */
-int LogMessage(uint8_t level, char* buf, uint32_t size){
+int LogMessage(uint8_t level, uint8_t* buf, uint32_t size){
     if(size < LOG_BUFFER_SIZE - sizeof(mTail)){
         uint32_t buffpos;
         uint64_t new_cursor, old_cursor;
@@ -387,7 +388,7 @@
 
         return 1; /* Success */
     }else{
-        char mstr[] = "Logging error : message too big";
+    	uint8_t mstr[] = "Logging error : message too big";
         LogMessage(LOG_CRITICAL, mstr, sizeof(mstr));
     }
     return 0;