Skip to content

Commit

Permalink
Added short delay in the streamDump function
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
  • Loading branch information
SRGDamia1 committed Jan 14, 2025
1 parent 71262af commit 369dded
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
12 changes: 11 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

***

## [0.1.2]

### Changed

- Added a short delay within the streamDump function.

***

## [0.1.1]

### Added

- Added a constructor with the stream defined

## [0.1.0]
Expand All @@ -31,6 +40,7 @@ Initial release

***

[Unreleased]: https://github.com/EnviroDIY/GeoluxCamera/compare/v0.1.1...HEAD
[Unreleased]: https://github.com/EnviroDIY/GeoluxCamera/compare/v0.1.2...HEAD
[0.1.2]: https://github.com/EnviroDIY/GeoluxCamera/releases/tag/v0.1.2
[0.1.1]: https://github.com/EnviroDIY/GeoluxCamera/releases/tag/v0.1.1
[0.1.0]: https://github.com/EnviroDIY/GeoluxCamera/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = "Geolux Camera"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.1.1
PROJECT_NUMBER = 0.1.2

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewers a
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GeoluxCamera",
"version": "0.1.1",
"version": "0.1.2",
"keywords": "Geolux, camera",
"description": "Arduino library for communication with Geolux serial camera.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=GeoluxCamera
version=0.1.1
version=0.1.2
author=Sara Damiano <sdamiano@stroudcenter.org>
maintainer=Sara Damiano <sdamiano@stroudcenter.org>
sentence=Arduino library for communication with Geolux serial camera.
Expand Down
1 change: 1 addition & 0 deletions src/GeoluxCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ class GeoluxCamera {
* @brief Read a throw away any characters left in the camera stream.
*/
inline void streamDump() {
if (!_stream->available()) { delay(25); }
while (_stream->available()) {
_stream->read();
delay(1);
Expand Down

0 comments on commit 369dded

Please sign in to comment.