Skip to content

Commit

Permalink
writeValue renaming
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
TrevKnows committed Feb 22, 2021
1 parent 98dd783 commit 8280b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Basic Chat MVC/Controllers/ConsoleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ConsoleViewController: UIViewController {
}

// Write functions
func writeValue(data: String){
func writeOutgoingValue(data: String){
let valueString = (data as NSString).data(using: String.Encoding.utf8.rawValue)
//change the "data" to valueString
if let blePeripheral = BlePeripheral.connectedPeripheral {
Expand Down Expand Up @@ -139,7 +139,7 @@ extension ConsoleViewController: UITextViewDelegate {
extension ConsoleViewController: UITextFieldDelegate {

func textFieldShouldReturn(_ textField: UITextField) -> Bool {
writeValue(data: textField.text ?? "")
writeOutgoingValue(data: textField.text ?? "")
appendTxDataToTextView()
textField.resignFirstResponder()
textField.text = ""
Expand Down

0 comments on commit 8280b26

Please sign in to comment.