diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb9d3c..de0c12c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/example/pubspec.lock b/example/pubspec.lock index c1e4ab7..a691f02 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -265,7 +265,7 @@ packages: path: ".." relative: true source: path - version: "2.0.2" + version: "2.1.1" shelf: dependency: transitive description: diff --git a/lib/src/serial_port.dart b/lib/src/serial_port.dart index f8d2a32..79aea71 100644 --- a/lib/src/serial_port.dart +++ b/lib/src/serial_port.dart @@ -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 _dbcc_name; -} - class SerialPort { /// [portName] like COM3 final String portName; diff --git a/pubspec.yaml b/pubspec.yaml index 8a3c02e..882f52d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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