From 53da7eecff440baf1a6f86a691cb79d113abc5a9 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 13 Jun 2012 20:18:09 -0700 Subject: [PATCH] Notice to user if no location is set. --- python/cpr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/cpr.py b/python/cpr.py index 51ef86c..2e982f0 100644 --- a/python/cpr.py +++ b/python/cpr.py @@ -180,6 +180,8 @@ def range_bearing(loc_a, loc_b): class cpr_decoder: def __init__(self, my_location): self.my_location = my_location + if my_location is None: + print "Notice: Set your coordinates with --location to get faster position reports." self.lkplist = {} self.evenlist = {} self.oddlist = {}