Skip to content

Commit

Permalink
SerialPortReader: respect pause & resume
Browse files Browse the repository at this point in the history
Ref: #4
  • Loading branch information
jpnurmi committed Sep 26, 2020
1 parent 2f11395 commit 041e03f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class _SerialPortReaderImpl implements SerialPortReader {
_controller ??= StreamController<Uint8List>(
onListen: _startRead,
onCancel: _cancelRead,
onPause: _cancelRead,
onResume: _startRead,
);
return _controller.stream;
}
Expand Down

0 comments on commit 041e03f

Please sign in to comment.