Merge pull request #129 from meshtastic/feature/module_settings

Log lora config details
This commit is contained in:
Garth Vander Houwen 2022-07-27 20:32:37 -07:00 committed by GitHub
commit a06debe968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View file

@ -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")

View file

@ -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()
}
}