Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Beegan committed Apr 15, 2024
1 parent b232949 commit 24932e7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@

## 1.0.3

- change listen method signature -- now returns the subscription
- change listen method signature -- now returns the subscription

## 1.0.4

- fix small formatting issues
13 changes: 8 additions & 5 deletions example/reverse_beacon_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void main() async {
exit(-1);
}
int spotCount = 0;
rb.listen((spot) {
var subscription = rb.listen((spot) {
//filter
if (spotCount < 5) {
if (spot.band == Band.meters20 && spot.mode == Mode.cw) {
Expand All @@ -34,9 +34,12 @@ void main() async {
spotCount++;
}
}

if (spotCount == 10) {
rb.close();
}
});
if (spotCount > 15){
subscription.pause();
Future.delayed(Duration(seconds: 1));
subscription.resume();
subscription.cancel();
rb.close();
}
}
1 change: 0 additions & 1 deletion lib/reverse_beacon.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

library;

export 'package:reverse_beacon/reverse_beacon.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reverse_beacon
description: transforms the reverse beacon telnet CW and DIGI servers into a controllable stream
version: 1.0.3
version: 1.0.4
repository: https://github.com/N1BRI/reverse_beacon

environment:
Expand Down

0 comments on commit 24932e7

Please sign in to comment.