Skip to content

Commit ba22000

Browse files
committed
Remove warnings raised by example
1 parent ae87cf5 commit ba22000

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

examples/Log/Log.ino

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*/
77

88

9-
int intValue1 , intValue2;
10-
long longValue1, longValue2;
11-
bool boolValue1, boolValue2;
12-
char* charArray = "this is a string";
13-
String stringValue1 = "this is a string";
9+
int intValue1 , intValue2;
10+
long longValue1, longValue2;
11+
bool boolValue1, boolValue2;
12+
const char * charArray = "this is a string";
13+
String stringValue1 = "this is a string";
1414

1515
void setup() {
1616
// Set up serial port and wait until connected
@@ -27,9 +27,9 @@ void setup() {
2727

2828
//Start logging
2929

30-
Log.notice(F(CR"******************************************"CR)); // Info string with Newline
31-
Log.notice( "*** Logging example "CR); // Info string in flash memory
32-
Log.notice(F("******************* ")); Log.notice("*********************** "CR); // two info strings without newline
30+
Log.notice(F(CR "******************************************" CR)); // Info string with Newline
31+
Log.notice( "*** Logging example " CR); // Info string in flash memory
32+
Log.notice(F("******************* ")); Log.notice("*********************** " CR); // two info strings without newline
3333
}
3434

3535
void loop() {
@@ -42,21 +42,21 @@ void loop() {
4242
boolValue1 = random(2)==0;
4343
boolValue2 = random(2)==1;
4444

45-
Log.notice ( "Log as Info with integer values : %d, %d"CR , intValue1, intValue2);
46-
Log.notice (F("Log as Info with hex values : %x, %X"CR ), intValue1, intValue1);
47-
Log.notice ( "Log as Info with hex values : %x, %X"CR , intValue2, intValue2);
48-
Log.notice (F("Log as Info with binary values : %b, %B"CR ), intValue1, intValue1);
49-
Log.notice ( "Log as Info with binary values : %b, %B"CR , intValue2, intValue2);
50-
Log.notice (F("Log as Info with long values : %l, %l"CR ), longValue1, longValue2);
51-
Log.notice ( "Log as Info with bool values : %t, %T"CR , boolValue1, boolValue2);
52-
Log.notice (F("Log as Info with string value : %s"CR ), charArray);
53-
Log.notice ( "Log as Info with string value : %s"CR , stringValue1.c_str());
54-
Log.notice (F("Log as Debug with mixed values : %d, %d, %l, %l, %t, %T"CR ), intValue1 , intValue2,
45+
Log.notice ( "Log as Info with integer values : %d, %d" CR , intValue1, intValue2);
46+
Log.notice (F("Log as Info with hex values : %x, %X" CR ), intValue1, intValue1);
47+
Log.notice ( "Log as Info with hex values : %x, %X" CR , intValue2, intValue2);
48+
Log.notice (F("Log as Info with binary values : %b, %B" CR ), intValue1, intValue1);
49+
Log.notice ( "Log as Info with binary values : %b, %B" CR , intValue2, intValue2);
50+
Log.notice (F("Log as Info with long values : %l, %l" CR ), longValue1, longValue2);
51+
Log.notice ( "Log as Info with bool values : %t, %T" CR , boolValue1, boolValue2);
52+
Log.notice (F("Log as Info with string value : %s" CR ), charArray);
53+
Log.notice ( "Log as Info with string value : %s" CR , stringValue1.c_str());
54+
Log.notice (F("Log as Debug with mixed values : %d, %d, %l, %l, %t, %T" CR ), intValue1 , intValue2,
5555
longValue1, longValue2, boolValue1, boolValue2);
56-
Log.trace ( "Log as Trace with bool value : %T"CR , boolValue1);
57-
Log.warning ( "Log as Warning with bool value : %T"CR , boolValue1);
58-
Log.error ( "Log as Error with bool value : %T"CR , boolValue1);
59-
Log.fatal ( "Log as Fatal with bool value : %T"CR , boolValue1);
60-
Log.verbose (F("Log as Vebose with bool value : %T"CR CR CR ), boolValue2);
56+
Log.trace ( "Log as Trace with bool value : %T" CR , boolValue1);
57+
Log.warning ( "Log as Warning with bool value : %T" CR , boolValue1);
58+
Log.error ( "Log as Error with bool value : %T" CR , boolValue1);
59+
Log.fatal ( "Log as Fatal with bool value : %T" CR , boolValue1);
60+
Log.verbose (F("Log as Vebose with bool value : %T" CR CR CR ), boolValue2);
6161
delay(5000);
6262
}

0 commit comments

Comments
 (0)