mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix logs for pax counter
This commit is contained in:
parent
d3d16e206e
commit
cce30cd9f7
3 changed files with 27 additions and 26 deletions
|
|
@ -977,7 +977,7 @@ func upsertExternalNotificationModuleConfigPacket(config: Meshtastic.ModuleConfi
|
|||
func upsertPaxCounterModuleConfigPacket(config: Meshtastic.ModuleConfig.PaxcounterConfig, nodeNum: Int64, context: NSManagedObjectContext) {
|
||||
|
||||
let logString = String.localizedStringWithFormat("mesh.log.paxcounter.config %@".localized, String(nodeNum))
|
||||
MeshLogger.log("📣 \(logString)")
|
||||
MeshLogger.log("🧑🤝🧑 \(logString)")
|
||||
|
||||
let fetchNodeInfoRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest.init(entityName: "NodeInfoEntity")
|
||||
fetchNodeInfoRequest.predicate = NSPredicate(format: "num == %lld", Int64(nodeNum))
|
||||
|
|
|
|||
|
|
@ -71,31 +71,31 @@ struct PowerConfig: View {
|
|||
} header: {
|
||||
Text("config.power.section.battery")
|
||||
}
|
||||
Section {
|
||||
Picker("config.power.wait.bluetooth.secs", selection: $waitBluetoothSecs) {
|
||||
ForEach(PowerIntervals.allCases) {
|
||||
Text($0.description)
|
||||
}
|
||||
}
|
||||
.pickerStyle(DefaultPickerStyle())
|
||||
|
||||
Picker("config.power.ls.secs", selection: $lsSecs) {
|
||||
ForEach(PowerIntervals.allCases) {
|
||||
Text($0.description)
|
||||
}
|
||||
}
|
||||
.pickerStyle(DefaultPickerStyle())
|
||||
|
||||
Picker("config.power.min.wake.secs", selection: $minWakeSecs) {
|
||||
ForEach(PowerIntervals.allCases) {
|
||||
Text($0.description)
|
||||
}
|
||||
}
|
||||
.pickerStyle(DefaultPickerStyle())
|
||||
|
||||
} header: {
|
||||
Text("config.power.section.sleep")
|
||||
}
|
||||
// Section {
|
||||
// Picker("config.power.wait.bluetooth.secs", selection: $waitBluetoothSecs) {
|
||||
// ForEach(PowerIntervals.allCases) {
|
||||
// Text($0.description)
|
||||
// }
|
||||
// }
|
||||
// .pickerStyle(DefaultPickerStyle())
|
||||
//
|
||||
// Picker("config.power.ls.secs", selection: $lsSecs) {
|
||||
// ForEach(PowerIntervals.allCases) {
|
||||
// Text($0.description)
|
||||
// }
|
||||
// }
|
||||
// .pickerStyle(DefaultPickerStyle())
|
||||
//
|
||||
// Picker("config.power.min.wake.secs", selection: $minWakeSecs) {
|
||||
// ForEach(PowerIntervals.allCases) {
|
||||
// Text($0.description)
|
||||
// }
|
||||
// }
|
||||
// .pickerStyle(DefaultPickerStyle())
|
||||
//
|
||||
// } header: {
|
||||
// Text("config.power.section.sleep")
|
||||
// }
|
||||
}
|
||||
}
|
||||
.disabled(self.bleManager.connectedPeripheral == nil || node?.powerConfig == nil)
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@
|
|||
"mesh.log.network.config %@"="Network config received: %@";
|
||||
"mesh.log.nodeinfo.received %@"="Node info received for: %@";
|
||||
"mesh.log.paxcounter %@"="PAX Counter message received from: %@";
|
||||
"mesh.log.paxcounter.config %@"="PAX Counter config received: %@";
|
||||
"mesh.log.position.config %@"="Positon config received: %@";
|
||||
"mesh.log.position.received %@"="Position Packet received from node: %@";
|
||||
"mesh.log.power.config %@"="Power config received: %@";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue