slotUI/freeslot.py

changeset 143
cb514887cf17
parent 140
f910ad6ed0b6
child 145
80be5eb283d3
--- a/slotUI/freeslot.py	Sat Dec 21 13:08:43 2013 +0100
+++ b/slotUI/freeslot.py	Sat Dec 21 13:49:46 2013 +0100
@@ -191,6 +191,16 @@
         else:
             return self.com.query( "P40%i" % carid )
 
+    def unlimitedfuel(self, carid, boolval):
+        """
+        Set unlimited fuel on/off for a car
+        """
+        if (carid < 0) or (carid > 5):
+            return "ERR - invalid carid"
+        value = 0
+        if boolval: value = 1
+        return  self.com.query( "U%i%i" % (carid, value) )
+
     def speedlimit(self, carid, value):
         """
         Set the maximum controller speed for a car

mercurial