Versão limpa em 04/09/2014. Telnet funcionando.

Dependencies:   EthernetInterface mbed-rtos mbed NTPClient

Files at this revision

API Documentation at this revision

Comitter:
mlucas82
Date:
Fri Mar 27 13:58:19 2015 +0000
Branch:
feature-logs
Parent:
11:2b79016076dc
Child:
13:097c0178303b
Commit message:
Corrected bug in LogMarksInterval behavior on "Mark()" and setting new default value as "40" for this parameter

Changed in this revision

Codes/PmedLog.cpp Show annotated file Show diff for this revision Revisions of this file
Codes/Settings.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Codes/PmedLog.cpp	Fri Mar 27 13:49:17 2015 +0000
+++ b/Codes/PmedLog.cpp	Fri Mar 27 13:58:19 2015 +0000
@@ -8,7 +8,7 @@
 #include "PmedLog.h"
 
 int PmedLog::m_entry = 0;
-int PmedLog::m_lastMark = 0;
+time_t PmedLog::m_lastMark = 0;
 
 void PmedLog::WriteEntry(char *value)
 {
@@ -35,6 +35,7 @@
     seconds -= m_lastMark;
     
     if ( seconds >= get_LogMarksInterval() ) {
+        m_lastMark = seconds;
         WriteEntry(" . --  ===   MARK   ===  -- . ");
     }
 }
--- a/Codes/Settings.cpp	Fri Mar 27 13:49:17 2015 +0000
+++ b/Codes/Settings.cpp	Fri Mar 27 13:58:19 2015 +0000
@@ -30,7 +30,7 @@
 int  Settings::m_DelaySend = 0;
 
 bool Settings::m_logMarks = true;
-int Settings::m_logMarksInterval = 20;
+int Settings::m_logMarksInterval = 40;
 
 //TCPSocketServer Settings::m_ServerSocket;
 //TCPSocketConnection Settings::m_Socket[NEIGHBORS];
@@ -70,7 +70,7 @@
     set_DelaySend(50);
     
     set_LogMarks(true);
-    set_LogMarksInterval(20);
+    set_LogMarksInterval(40);
     
     int i;