Skip to content

Commit

Permalink
refractor: code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
FengChendian committed Nov 13, 2024
1 parent 3c6b686 commit 1b9344e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
## 2.1.0

- Check if COM is disconnected when use `isOpened`.
## 2.0.2
## 2.1.1

- fix setCommState Error

## 2.1.0

- update dependencies

## 2.0.1

- add lints to dev dependencies
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.2"
version: "2.1.1"
shelf:
dependency: transitive
description:
Expand Down
16 changes: 0 additions & 16 deletions lib/src/serial_port.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ enum StringConverter {
ANSI,
}

typedef ThreadProcNative = Int Function();

base class DEV_BROADCAST_PORT_ extends Struct {
@Uint32()
external int dbcp_size;

@Uint32()
external int dbcp_devicetype;

@Uint32()
external int dbcp_reserved;

@Array(1)
external Array<Uint16> _dbcc_name;
}

class SerialPort {
/// [portName] like COM3
final String portName;
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: serial_port_win32
description: A SerialPort library using win32 API, for connecting real device by serial port. Only supports Windows.
version: 2.0.2
version: 2.1.1
homepage: https://github.com/FengChendian/serial_port_win32
repository: https://github.com/FengChendian/serial_port_win32
issue_tracker: https://github.com/FengChendian/serial_port_win32/issues
Expand Down

0 comments on commit 1b9344e

Please sign in to comment.