navdata test (requires manual download of data"

This commit is contained in:
2016-04-17 15:08:25 +02:00
parent 7320e8db77
commit fff1088e78
4 changed files with 101 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@
// Override point for customization after application launch.
_dbClient = [[DropboxV2ObjC alloc] init];
((AppDelegate *)[UIApplication sharedApplication].delegate).main = self;
NSDictionary *credentials =
[[NSURLCredentialStorage sharedCredentialStorage]
credentialsForProtectionSpace:_dbClient.kDropboxProtectionSpace];
+3 -1
View File
@@ -264,7 +264,9 @@ NavDataParser *parser = nil;
}
else {
// Right hand LSKs, aka waypoint entry
if ([precedingWaypoint.text isEqualToString:@""]) {
if ([precedingWaypoint.text isEqualToString:@""] &&
![[_Header.text substringToIndex:7]
isEqualToString:@"ROUTE 1"]) {
// Not allowed
NSLog(@"NOT ALLOWED 3");
}