aligned output and updated deprecated code
diff -r 88c1144ae455 WhereAmI/LocationGetter.m --- a/WhereAmI/LocationGetter.m Sat Jul 21 22:39:24 2018 +0000 +++ b/WhereAmI/LocationGetter.m Sat Jul 21 14:05:23 2018 -0400 @@ -48,10 +48,10 @@ NSTimeInterval ageInSeconds = -[newLocation.timestamp timeIntervalSinceNow]; if (ageInSeconds > 60.0) return; // Ignore data more than a minute old
- IFPrint(@"Latitude: %f", newLocation.coordinate.latitude);
- IFPrint(@"Longitude: %f", newLocation.coordinate.longitude);
- IFPrint(@"Accuracy (m): %f", newLocation.horizontalAccuracy);
- IFPrint(@"Timestamp: %@", [NSDateFormatter localizedStringFromDate:newLocation.timestamp
-
IFPrint(@"Latitude : %10.6f", newLocation.coordinate.latitude);
-
IFPrint(@"Longitude : %10.6f", newLocation.coordinate.longitude);
-
IFPrint(@"Accuracy (m): %10.6f", newLocation.horizontalAccuracy);
-
IFPrint(@"Timestamp : %@", [NSDateFormatter localizedStringFromDate:newLocation.timest
[self.manager stopUpdatingLocation]; self.exitCode = 0; @@ -59,7 +59,7 @@ }
-(BOOL)isWifiEnabled {
- CWInterface *wifi = [CWInterface interface];
- CWInterface *wifi = [CWWiFiClient init]; return wifi.powerOn; }
If you want to submit this as a pull request, I'd be happy to take a look and accept it.
Despite having an account on GitHub, I haven’t used it or know how to create pull request. For my own stuff, I just use local hg repos.
On Jul 23, 2018, at 14:59 , Rob Mathers [email protected] wrote:
If you want to submit this as a pull request, I'd be happy to take a look and accept it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robmathers/WhereAmI/issues/5#issuecomment-407165262, or mute the thread https://github.com/notifications/unsubscribe-auth/APNMibt6DwC6Hn4kEeInU9giZnRDBxHVks5uJh0BgaJpZM4VZtiU.
@rwmitchell If it's "just" this one file, do it like this (which is the easiest way without any git knowledge):
- Open the file here in GitHubs webinterface.
- Click on the pencil icon
Github will then fork the repo in the background and opens an online editor in your form, containing this file. Make your changes, write an useful commit message and click "propose change". Next should be a site titled as "Comparing changes". Here you can see your patch again. Click on the big green button "Open pull request".