From 90a0cd6355726205b09df006bd8176b5256147d2 Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Sat, 13 Jan 2018 18:47:33 +1100 Subject: [PATCH] Clear existing offset info when parking Fix a bad log call --- pocs/state/states/default/parking.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pocs/state/states/default/parking.py b/pocs/state/states/default/parking.py index a90b9ac71..d5c1eef06 100644 --- a/pocs/state/states/default/parking.py +++ b/pocs/state/states/default/parking.py @@ -4,13 +4,14 @@ def on_enter(event_data): # Clear any current observation pocs.observatory.current_observation = None + pocs.observatory.current_offset_info = None pocs.next_state = 'parked' if pocs.observatory.has_dome: pocs.say('Closing dome') if not pocs.observatory.close_dome(): - self.logger.critical('Unable to close dome!') + pocs.logger.critical('Unable to close dome!') pocs.say('Unable to close dome!') pocs.say("I'm takin' it on home and then parking.")