Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
Trimmed end of data so no \n at the end
  • Loading branch information
JeftadeGraaf committed Dec 27, 2023
1 parent 7330ab5 commit 24696a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class SerialOutputComponent implements AfterViewInit, OnInit {
}

this.serialDataSubscription = this.robotWiredState.serialData$.subscribe((data: SerialData[]) => {
this.serialDataAsJSON = data.map(item => ({ time: item.time, data: item.data }));
this.serialDataAsJSON = data.map(item => ({ time: item.time, data: item.data.trim() }));
// Additional logic if needed...
});
}
Expand Down

0 comments on commit 24696a1

Please sign in to comment.