Skip to content

Commit 726d3a7

Browse files
committed
minor changes
1 parent 16c2166 commit 726d3a7

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

MissionControl/MissionControl.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@
480480
isa = PBXSourcesBuildPhase;
481481
buildActionMask = 2147483647;
482482
files = (
483+
02A147C11C556A150033B7D6 /* NetworkManager.swift in Sources */,
483484
C1722BF21C443D7B000262D7 /* Sensor.swift in Sources */,
484485
C1722BF41C444761000262D7 /* DigitalSensorTableViewCell.swift in Sources */,
485486
C1FB94981BC4012E00601E6D /* ConnectViewController.swift in Sources */,

MissionControl/MissionControl/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,6 @@
579579
<image name="sensor" width="35" height="35"/>
580580
</resources>
581581
<inferredMetricsTieBreakers>
582-
<segue reference="fwr-r4-lzA"/>
582+
<segue reference="8Bh-Lf-bKo"/>
583583
</inferredMetricsTieBreakers>
584584
</document>

MissionControl/MissionControl/NetworkManager.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ class NetworkManager {
4848
//receives parts of connlao until it is parseable
4949
var parseable = false
5050
while (!parseable){
51+
usleep(10000)
52+
print("connLAO")
5153
connLAO = (connLAO as String) + (receiveString() as String)
54+
print(connLAO)
5255
do {
5356
//try to serialize json, will succeed if valid json
5457
try NSJSONSerialization.JSONObjectWithData(self.connLAO.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!, options: []) as! [String: AnyObject]
@@ -100,8 +103,9 @@ class NetworkManager {
100103
queue.addOperationWithBlock() {
101104
while(!self.aborted){
102105
self.latest = self.receiveString()
106+
print("received")
103107
NSOperationQueue.mainQueue().addOperationWithBlock() {
104-
// when done, update your UI and/or model on the main queue
108+
//add operation to main queue
105109
}
106110
}
107111
self.sock!.close()

MissionControl/MissionControl/SensorTableViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// MissionControl
44
//
55
// Created by Daniel Honies on 04.10.15.
6-
// Copyright © 2015 Daniel Honies. All rights reserved.
6+
// Copyright © 2015 F-WuTS. All rights reserved.
77
//
88

99
import UIKit
@@ -24,7 +24,7 @@ class SensorTableViewController: UITableViewController, UITabBarControllerDelega
2424

2525
let tableCellHeightExpanded:CGFloat = 209
2626
let tableCellHeightCollapsed:CGFloat = 45
27-
let refreshRate = 0.1
27+
let refreshRate = 0.05
2828

2929
override func viewDidLoad() {
3030
super.viewDidLoad()
@@ -138,6 +138,7 @@ class SensorTableViewController: UITableViewController, UITabBarControllerDelega
138138
}
139139
}
140140
}
141+
print("updated")
141142
}
142143

143144
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

0 commit comments

Comments
 (0)