Skip to content

Commit

Permalink
Fix iOS recalculation time gate
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Apr 14, 2024
1 parent c2dcbcc commit 1b07fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if useLocalFramework {
path: "./common/target/ios/libferrostar-rs.xcframework"
)
} else {
let releaseTag = "0.0.22"
let releaseChecksum = "f31010e9f291f263fbeb11a85243898e8db05abb822b2f0994f12261e6aea972"
let releaseTag = "0.0.23"
let releaseChecksum = "3f93a1ee79311f6bfdd7c39499725a03e2ebdd421daf966e4aa31527753542d9"
binaryTarget = .binaryTarget(
name: "FerrostarCoreRS",
url: "https://github.com/stadiamaps/ferrostar/releases/download/\(releaseTag)/libferrostar-rs.xcframework.zip",
Expand Down
2 changes: 1 addition & 1 deletion apple/Sources/FerrostarCore/FerrostarCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public protocol FerrostarCoreDelegate: AnyObject {
break
case let .offRoute(deviationFromRouteLine: deviationFromRouteLine):
guard !self.routeRequestInFlight,
self.lastAutomaticRecalculation?.timeIntervalSinceNow ?? 0 > -self
self.lastAutomaticRecalculation?.timeIntervalSinceNow ?? -TimeInterval.greatestFiniteMagnitude < -self
.minimumTimeBeforeRecalculaton
else {
break
Expand Down

0 comments on commit 1b07fc6

Please sign in to comment.