Navigation Menu

Skip to content

Commit

Permalink
serial output: a new line is enough, \r is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
robogrobo committed Nov 7, 2011
1 parent 90859f5 commit 940b68d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hager_impuls.pde
Expand Up @@ -38,7 +38,8 @@ void loop() {
ledOff = false;

if(debug) {
Serial.println(impuls, DEC);
Serial.print(impuls, DEC);
Serial.print("\n");
}
} else if(sensorVal < threshold) {
digitalWrite(ledPin, LOW);
Expand All @@ -52,7 +53,7 @@ void loop() {
case 'S': // send total impuls count and reset
Serial.print("echo ");
Serial.print(impuls);
Serial.println(" | nc barbados 4919");
Serial.print(" | nc barbados 4919\n");
impuls = 0;
break;
case 'R': // reset impuls count
Expand All @@ -63,7 +64,8 @@ void loop() {
break;
case 'G': // get impuls counter
Serial.print("current impuls count: ");
Serial.println(impuls);
Serial.print(impuls);
Serial.print("\n");
break;
case 'H': // help
Serial.print("This is the hager ec352 impuls counter help.\nBasic commandos:\n");
Expand Down

0 comments on commit 940b68d

Please sign in to comment.