mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Merge pull request #129 from meshtastic/feature/module_settings
Log lora config details
This commit is contained in:
commit
a06debe968
2 changed files with 14 additions and 6 deletions
|
|
@ -167,6 +167,11 @@ func localConfig (config: Config, meshlogging: Bool, context:NSManagedObjectCont
|
|||
if (try! config.lora.jsonString()) == "{}" {
|
||||
|
||||
isDefault = true
|
||||
if meshlogging { MeshLogger.log("📻 Default LoRa config \(String(nodeNum))") }
|
||||
|
||||
} else {
|
||||
|
||||
if meshlogging { MeshLogger.log("📻 Custom LoRa config \(String(nodeNum))") }
|
||||
}
|
||||
|
||||
let fetchNodeInfoRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest.init(entityName: "NodeInfoEntity")
|
||||
|
|
@ -603,7 +608,12 @@ func moduleConfig (config: ModuleConfig, meshlogging: Bool, context:NSManagedObj
|
|||
if (try! config.serial.jsonString()) == "{}" {
|
||||
|
||||
isDefault = true
|
||||
print("🤖 Default Serial Module config")
|
||||
|
||||
if meshlogging { MeshLogger.log("🤖 Default Serial Module config \(String(nodeNum))") }
|
||||
|
||||
} else {
|
||||
|
||||
if meshlogging { MeshLogger.log("🤖 Custom Serial Module config \(String(nodeNum))") }
|
||||
}
|
||||
|
||||
let fetchNodeInfoRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest.init(entityName: "NodeInfoEntity")
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ struct SaveChannelQRCode: View {
|
|||
|
||||
var body: some View {
|
||||
|
||||
// Show an error if there is no e/ or other validation problems
|
||||
|
||||
VStack {
|
||||
|
||||
Text("Save Channel Settings?")
|
||||
|
|
@ -24,16 +22,16 @@ struct SaveChannelQRCode: View {
|
|||
.font(.callout)
|
||||
.padding()
|
||||
|
||||
Text(String(channelHash?.path ?? "empty"))
|
||||
Text(String(channelHash?.path ?? "URL did not pass through properly"))
|
||||
.font(.title2)
|
||||
.padding()
|
||||
|
||||
Text("Blah blah.")
|
||||
Text("This does not work yet.")
|
||||
.font(.callout)
|
||||
.padding()
|
||||
|
||||
|
||||
Text("This is forever")
|
||||
Text("Swipe down to dismiss.")
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue