slotUI/SlotCli.py

changeset 74
173d0863a804
parent 61
040b6b2094fb
child 77
cede78304992
--- a/slotUI/SlotCli.py	Sat Dec 10 16:29:31 2011 +0100
+++ b/slotUI/SlotCli.py	Sat Dec 10 16:37:55 2011 +0100
@@ -78,11 +78,19 @@
         curses.noecho()
         self.scr.nodelay(1) # disable delay on readkey
 
+    def monitor_init(self):
+        """
+        Send initializing commands for live monitoring
+        """
+        self.box.com.query("F1\n") # set fuel logic enabled
+        self.box.com.query("*1\n") # set live fuel info
+
     def monitor(self):
         """
         Live Monitor on the console
         Keyboard loop to control it???
         """
+        self.monitor_init()
         self.scr = curses.initscr()
         curses.start_color()
         curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK) # standard text

mercurial