Skip to content

Commit

Permalink
fixed file duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
kkonteh97 committed Jan 12, 2025
1 parent 262909d commit 4000c11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 648 deletions.
12 changes: 6 additions & 6 deletions Sources/SwiftOBD2/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@ public enum PROTOCOL: String, Codable, CaseIterable {
.protocol4: .protocol3,
.protocol3: .protocol2,
.protocol2: .protocol1,
.protocol1: .NONE
.protocol1: .NONE,
]

return protocolMap[self] ?? .NONE
}

var cmd: String {
return "ATSP\(self.rawValue)"
"ATSP\(rawValue)"
}

public static let asArray: [PROTOCOL] = [
.protocol1, .protocol2, .protocol3, .protocol4, .protocol5,
.protocol6, .protocol7, .protocol8, .protocol9, .protocolA,
.protocolB, .protocolC, .NONE
]
.protocol1, .protocol2, .protocol3, .protocol4, .protocol5,
.protocol6, .protocol7, .protocol8, .protocol9, .protocolA,
.protocolB, .protocolC, .NONE,
]
}

// dictionary of all the protocols
Expand Down
8 changes: 0 additions & 8 deletions Sources/SwiftOBD2/commandRegistry.swift

This file was deleted.

Loading

0 comments on commit 4000c11

Please sign in to comment.