Skip to content

Commit

Permalink
html_api.h: remove blanks from message log line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
madmartin committed Jun 2, 2018
1 parent ba46258 commit 72a9ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ void html_api(){
if (cmd == "eventlog"){
String values ="";
String counter;
for( int i = 0; i < NUM_WEB_LOG_MESSAGES; ++i ){
for( int i = 0; i < NUM_WEB_LOG_MESSAGES; i++ ){
if (web_log_message[i] != ""){
if ((i+1) < 10) {
counter = "0" + String(i + 1);
}else {
counter = String(i + 1);
}
values += counter + " -" + web_log_message[i] + "\n";
values += counter + "-" + web_log_message[i] + "\n";
}
}
server.send ( 200, "text/plain", values );
Expand Down

0 comments on commit 72a9ec8

Please sign in to comment.