Skip to content

Commit

Permalink
Revert "fix: remove restored state from dart"
Browse files Browse the repository at this point in the history
This reverts commit 74b59c2.
  • Loading branch information
dballance committed Jun 13, 2023
1 parent 0e5607d commit 6c4695e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ final class PluginController {
message = DeviceInfo.with {
$0.id = peripheral.identifier.uuidString
// Restored device state is different from peripheral state from connection manager
$0.connectionState = encode(.connected)
$0.connectionState = 4
}

case .failedToConnect(let underlyingError), .disconnected(let underlyingError):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ enum DeviceConnectionState {
disconnecting,

/// Device is disconnected.
disconnected
disconnected,

/// Device is restored (iOS only - when using state restoration)
restored
}

/// Type of connection error.
Expand Down

0 comments on commit 6c4695e

Please sign in to comment.