Skip to content

Commit

Permalink
Flush dump stream
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Nov 14, 2024
1 parent 5d7ee3f commit 6221a0c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/.vscode/*
!/.vscode/settings.json
/logs
.history
4 changes: 3 additions & 1 deletion StreamDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class StreamDebugger
setDataStream(&data);
setDumpStream(&dump);
}

virtual ~StreamDebugger() {}

virtual size_t write(uint8_t ch) {
Expand All @@ -42,6 +42,8 @@ class StreamDebugger
virtual void flush() {
if (_data)
_data->flush();
if (_dump)
_dump->flush();
}

void directAccess() {
Expand Down
14 changes: 6 additions & 8 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"name": "StreamDebugger",
"version": "2.0.0",
"version": "2.0.1",
"description": "Debugger for Arduino Stream-based communication. This class is an Arduino Stream, that dumps all data to another Stream for debug purposes.",
"keywords": "Stream, Serial, Debug",
"authors":
{
"name": "Volodymyr Shymanskyy",
"url": "https://github.com/vshymanskyy",
"authors": {
"name": "Volodymyr Shymanskyy",
"url": "https://github.com/vshymanskyy",
"maintainer": true
},
"repository":
{
"repository": {
"type": "git",
"url": "https://github.com/vshymanskyy/StreamDebugger.git"
},
"homepage": "https://github.com/vshymanskyy/StreamDebugger",
"frameworks": [ "arduino", "energia", "wiringpi" ],
"frameworks": ["arduino", "energia", "wiringpi"],
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=StreamDebugger
version=2.0.0
version=2.0.1
author=Volodymyr Shymanskyy
maintainer=Volodymyr Shymanskyy
sentence=Debugger for Arduino Stream-based communication
Expand Down

0 comments on commit 6221a0c

Please sign in to comment.