The unified diff between revisions [41373c81..] and [82a5fa7a..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'fourstar.py'

#
#
# patch "fourstar.py"
#  from [4b069c1b4aa53503b413de9f9601fdc2365f04ff]
#    to [6e0ab1c57aada2e841a7cb8a120654e2afd81176]
#
============================================================
--- fourstar.py	4b069c1b4aa53503b413de9f9601fdc2365f04ff
+++ fourstar.py	6e0ab1c57aada2e841a7cb8a120654e2afd81176
@@ -31,7 +31,8 @@ from Store import Store

 from System import System
 from Store import Store
-from Interface import *
+from SystemInterface import SystemInterface
+from States import *

 #

@@ -51,20 +52,7 @@ from time import time, sleep, mktime, lo
 from traceback import format_tb
 from time import time, sleep, mktime, localtime

-#DOOR = 1
-#KEY = 3
-TICK = 4

-(
-STATE_IDLE,
-STATE_DOOR_OPENING,
-STATE_DOOR_CLOSING,
-STATE_GETTING_UID,
-STATE_GETTING_PIN,
-STATE_GET_SELECTION,
-STATE_GRANDFATHER_CLOCK,
-) = range(1,8)
-
 class FS_State:
 	def __init__(self,v):
 		self.state_table = {}
@@ -100,9 +88,11 @@ def create_state_table(vstatus):
 	pass

 def create_state_table(vstatus):
-	vstatus.state_table[(STATE_IDLE,TICK,1)] = fourstar_prompt
-	vstatus.state_table[(STATE_IDLE,TICK,2)] = command_input
-	vstatus.state_table[(STATE_IDLE,TICK,3)] = do_nothing
+	si = SystemInterface()
+
+	vstatus.state_table[(STATE_IDLE,TICK,1)] = si.fourstar_prompt
+	vstatus.state_table[(STATE_IDLE,TICK,2)] = si.command_input
+	vstatus.state_table[(STATE_IDLE,TICK,3)] = si.parse_input
 #	vstatus.state_table[(STATE_IDLE,KEY,1)] = do_nothing
 #	vstatus.state_table[(STATE_IDLE,DOOR,1)] = do_nothing
 #