LogMessage string pointer now char* instead of uint8_t*
authorEdouard Tisserant
Tue, 26 Mar 2013 12:44:44 +0900
changeset 1002 15c05ba95df4
parent 1001 3f966bbb3fba
child 1003 de812e258213
LogMessage string pointer now char* instead of uint8_t*
targets/beremiz.h
targets/plc_main_tail.c
--- a/targets/beremiz.h	Tue Mar 26 09:31:20 2013 +0900
+++ b/targets/beremiz.h	Tue Mar 26 12:44:44 2013 +0900
@@ -9,5 +9,5 @@
 #define LOG_DEBUG 3
 
 extern unsigned long long common_ticktime__;
-int LogMessage(uint8_t level, uint8_t* buf, uint32_t size);
+int LogMessage(uint8_t level, char* buf, uint32_t size);
 
--- a/targets/plc_main_tail.c	Tue Mar 26 09:31:20 2013 +0900
+++ b/targets/plc_main_tail.c	Tue Mar 26 12:44:44 2013 +0900
@@ -55,7 +55,7 @@
 static uint64_t LogCursor[LOG_LEVELS] LOG_BUFFER_ATTRS = {0x0,0x0,0x0,0x0};
 
 /* Store one log message of give size */
-int LogMessage(uint8_t level, uint8_t* buf, uint32_t size){
+int LogMessage(uint8_t level, char* buf, uint32_t size){
     if(size < LOG_BUFFER_SIZE - sizeof(mTail)){
         uint32_t buffpos;
         uint64_t new_cursor, old_cursor;