소스 검색

adjust bug in param name

Yeo Kheng Meng 9 년 전
부모
커밋
9c121788a6
2개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Examples/SwiftSerialExample/Sources/main.swift
  2. 0 4
      Examples/SwiftSerialExample/gitignore.txt

+ 1 - 1
Examples/SwiftSerialExample/Sources/main.swift

@@ -12,7 +12,7 @@ guard arguments.count >= 2 else {
 }
 
 let portName = arguments[1]
-let serialPort: SerialPort = SerialPort(name: portName)
+let serialPort: SerialPort = SerialPort(path: portName)
 
 do {
     try serialPort.openPort()

+ 0 - 4
Examples/SwiftSerialExample/gitignore.txt

@@ -1,4 +0,0 @@
-.DS_Store
-/.build
-/Packages
-/*.xcodeproj