Skip to content

Commit

Permalink
Fix for serial terminal line break symbol #bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
loredan committed Sep 26, 2019
1 parent 9f1d5df commit 1d805b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_serial.h
Expand Up @@ -18,7 +18,8 @@ void identifyMarkers() {
char x = Serial.read();
// char y = Wire.read();

if (x == endMarker) {
if (x == '\n' || x == '\r')
{
serialIncoming = true;
inputBuffer[bytesRecvd] = 0;
parseData();
Expand Down

0 comments on commit 1d805b1

Please sign in to comment.