Skip to content

Commit

Permalink
Format, remove JBChartView dependency, only collect rssi history when…
Browse files Browse the repository at this point in the history
… debugging
  • Loading branch information
dinhvh committed Jul 6, 2015
1 parent f39edf5 commit af24d5c
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 126 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@
path = ios/PhyWeb/third-party/SVPullToRefresh
url = https://github.com/dinhviethoa/SVPullToRefresh
branch = contentinset-update
[submodule "ios/PhyWeb/third-party/JBChartView"]
path = ios/PhyWeb/third-party/JBChartView
url = https://github.com/Jawbone/JBChartView
4 changes: 3 additions & 1 deletion ios/PhyWeb/Backend/PWBeacon.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ - (NSArray *) rssiHistory {

- (void) setUriBeacon:(UBUriBeacon *)uriBeacon {
NSTimeInterval timestamp = [NSDate timeIntervalSinceReferenceDate];
[_rssiHistory addObject:@[[NSNumber numberWithInt:(int) [uriBeacon RSSI]], [NSNumber numberWithDouble:timestamp]]];
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DebugMode"]) {
[_rssiHistory addObject:@[[NSNumber numberWithInt:(int) [uriBeacon RSSI]], [NSNumber numberWithDouble:timestamp]]];
}
_uriBeacon = uriBeacon;
}

Expand Down
Loading

0 comments on commit af24d5c

Please sign in to comment.