Serial send works
This commit is contained in:
parent
41773412f5
commit
efd0785a74
|
@ -75,6 +75,9 @@ class ASSerialWin: NSWindowController {
|
|||
}
|
||||
|
||||
@IBAction func sendInput(AnyObject) {
|
||||
let line = inputLine.stringValue + (sendCR ? "\r" : "") + (sendLF ? "\n" : "")
|
||||
let data = line.dataUsingEncoding(NSASCIIStringEncoding, allowLossyConversion: true)!
|
||||
portHandle?.writeData(data)
|
||||
}
|
||||
|
||||
@IBAction func connect(AnyObject) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user