mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Swiftlint updates
This commit is contained in:
parent
9f1b3975f8
commit
a8399f6148
5 changed files with 4 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ extension MQTTConfigEntity {
|
|||
self.mapPositionPrecision = Int32(config.mapReportSettings.positionPrecision)
|
||||
self.mapPublishIntervalSecs = Int32(config.mapReportSettings.publishIntervalSecs)
|
||||
}
|
||||
|
||||
|
||||
func update(with config: ModuleConfig.MQTTConfig) {
|
||||
enabled = config.enabled
|
||||
proxyToClientEnabled = config.proxyToClientEnabled
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ extension RangeTestConfigEntity {
|
|||
self.enabled = config.enabled
|
||||
self.save = config.save
|
||||
}
|
||||
|
||||
|
||||
func update(with config: ModuleConfig.RangeTestConfig) {
|
||||
sender = Int32(config.sender)
|
||||
enabled = config.enabled
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ extension SerialConfigEntity {
|
|||
self.timeout = Int32(config.timeout)
|
||||
self.mode = Int32(config.mode.rawValue)
|
||||
}
|
||||
|
||||
|
||||
func update(with config: ModuleConfig.SerialConfig) {
|
||||
enabled = config.enabled
|
||||
echo = config.echo
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ extension StoreForwardConfigEntity {
|
|||
self.historyReturnMax = Int32(config.historyReturnMax)
|
||||
self.historyReturnWindow = Int32(config.historyReturnWindow)
|
||||
}
|
||||
|
||||
|
||||
func update(with config: ModuleConfig.StoreForwardConfig) {
|
||||
enabled = config.enabled
|
||||
heartbeat = config.heartbeat
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ struct AppData: View {
|
|||
bleManager.disconnectPeripheral(reconnect: false)
|
||||
let container = NSPersistentContainer(name: "Meshtastic")
|
||||
do {
|
||||
clearCoreDataDatabase(context: context, includeRoutes: true)
|
||||
try container.restorePersistentStore(from: file.absoluteURL)
|
||||
let request = MyInfoEntity.fetchRequest()
|
||||
try context.fetch(request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue