Skip to content

Commit

Permalink
#1 addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos21 committed Jun 26, 2018
1 parent 2b4ee9d commit c628a95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class ModelNumberCharacteristicViewController: UIViewController {

// MARK: - Actions

@IBAction func textFieldEditingChanged(_ sender: Any) {
@IBAction func textFieldEditingChanged(_ sender: UITextField) {

guard let text = modelTextField.text
else { return }
Expand All @@ -49,8 +49,9 @@ final class ModelNumberCharacteristicViewController: UIViewController {
updateText()
}

func updateText() {
private func updateText() {

modelTextField.isEnabled = valueDidChange != nil
modelTextField.text = value.rawValue
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ final class SystemIDCharacteristicViewController: UIViewController {
guard let organizationallyUniqueIdentifier = UInt32(organizationallyUniqueIdentifierText)
else { return }

value = GATTSystemID(manufacturerIdentifier: manufacturerIdentifier,
organizationallyUniqueIdentifier: organizationallyUniqueIdentifier)!
// valueDidChange?(value)
guard let systemID = GATTSystemID(manufacturerIdentifier: manufacturerIdentifier,
organizationallyUniqueIdentifier: organizationallyUniqueIdentifier)
else { return }

value = systemID
valueDidChange?(value)
}
}

Expand Down

0 comments on commit c628a95

Please sign in to comment.