mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix assorted paper cuts
This commit is contained in:
parent
ebf243f203
commit
93cfda20ed
8 changed files with 27 additions and 113 deletions
|
|
@ -1,8 +1,22 @@
|
|||
//
|
||||
// PacketModel.swift
|
||||
// MeshtasticClient
|
||||
//
|
||||
// Created by Garth Vander Houwen on 9/23/21.
|
||||
//
|
||||
struct PacketModel: Identifiable {
|
||||
|
||||
var id: UInt32
|
||||
var from: UInt32
|
||||
var to: UInt32
|
||||
var channel: UInt32
|
||||
var rxTime: UInt32
|
||||
var hopLimit: UInt32
|
||||
var wantAck: Bool
|
||||
|
||||
import Foundation
|
||||
|
||||
init(id: UInt32, from: UInt32, to: UInt32, channel: UInt32, rxTime: UInt32, hopLimit: UInt32, wantAck: Bool) {
|
||||
|
||||
self.id = id
|
||||
self.from = from
|
||||
self.to = to
|
||||
self.channel = channel
|
||||
self.rxTime = rxTime
|
||||
self.hopLimit = hopLimit
|
||||
self.wantAck = wantAck
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue