changeset 1093 | b5f78cff4459 |
parent 1012 | deb0fcab0c64 |
child 1428 | e14003eb4d42 |
--- a/targets/plc_main_tail.c Mon May 06 11:15:05 2013 +0200 +++ b/targets/plc_main_tail.c Mon May 06 16:01:17 2013 +0200 @@ -54,6 +54,13 @@ | counter | Index | */ static uint64_t LogCursor[LOG_LEVELS] LOG_BUFFER_ATTRS = {0x0,0x0,0x0,0x0}; +void ResetLogCount(void) { + uint8_t level; + for(level=0;level<LOG_LEVELS;level++){ + LogCursor[level] = 0; + } +} + /* Store one log message of give size */ int LogMessage(uint8_t level, char* buf, uint32_t size){ if(size < LOG_BUFFER_SIZE - sizeof(mTail)){