Skip to content

Commit 7806d53

Browse files
committed
release 1.1#
1 parent 977dd81 commit 7806d53

31 files changed

+924
-258
lines changed

Diff for: Logging.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
#include "Logging.h"
22

3-
Logging::Logging(int level, long baud) {
3+
void Logging::Init(int level, long baud){
44
_level = constrain(level,LOG_LEVEL_NOOUTPUT,LOG_LEVEL_VERBOSE);
55
_baud = baud;
6-
}
7-
8-
9-
void Logging::Init(){
106
Serial.begin(_baud);
117
}
128

@@ -118,6 +114,7 @@ void Logging::Verbose(char* msg, ...){
118114
}
119115
}
120116

117+
Logging Log = Logging();
121118

122119

123120

Diff for: Logging.h

+11-8
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,30 @@ extern "C" {
6161
* <tr><td>3</td><td>LOG_LEVEL_DEBUG</td><td>errors, info and debug </td></tr>
6262
* <tr><td>4</td><td>LOG_LEVEL_VERBOSE</td><td>all </td></tr>
6363
* </table>
64+
* <br>
65+
* <h1>History</h1><br>
66+
* <table border="0">
67+
* <tr><td>01 FEB 2012</td><td>initial release</td></tr>
68+
* <tr><td>06 MAR 2012</td><td>implement a preinstanciate object (like in Wire, ...)</td></tr>
69+
* <tr><td></td><td>methode init get now loglevel and baud parameter</td></tr>
6470
*/
6571
class Logging {
6672
private:
6773
int _level;
6874
long _baud;
6975
public:
7076
/*!
71-
* Constructor
72-
* initialize loglevel and set baud rate
73-
* \param level possible loglevel between 0 - 4
74-
* \param baud baudrate for RS232
75-
* \return
76-
*
77+
* default Constructor
7778
*/
78-
Logging(int level, long baud) ;
79+
Logging(){} ;
7980

8081
/**
8182
* Initializing, must be called as first.
8283
* \param void
8384
* \return void
8485
*
8586
*/
86-
void Init();
87+
void Init(int level, long baud);
8788

8889
/**
8990
* Output an error message. Output message contains
@@ -136,6 +137,8 @@ class Logging {
136137
private:
137138
void print(const char *format, va_list args);
138139
};
140+
141+
extern Logging Log;
139142
#endif
140143

141144

Diff for: Logging.zip

11.8 KB
Binary file not shown.

Diff for: doc/html/_logging_8cpp-source.html

+121-127
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: doc/html/_logging_8cpp.html

+22-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: doc/html/_logging_8h-source.html

+27-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: doc/html/_logging_8h.html

+27-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: doc/html/annotated.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: doc/html/class_logging-members.html

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)