added live init to slotcli

Sat, 10 Dec 2011 16:37:55 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Sat, 10 Dec 2011 16:37:55 +0100
changeset 74
173d0863a804
parent 73
ec888cfa024e
child 75
0b38de31ad5d

added live init to slotcli

slotUI/SlotCli.py file | annotate | diff | comparison | revisions
--- 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