1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Turned OFF logging for TtyIn

This commit is contained in:
Ross Wilson 2016-03-12 16:02:50 +07:00
parent 56bbd98194
commit f49e9e1fce

View File

@ -34,7 +34,7 @@ class TtyIn(object):
def mount(self, fname):
"""Mount a file on the TTYIN device."""
log("Mounting '%s' on TTYIN" % fname)
# log("Mounting '%s' on TTYIN" % fname)
self.filename = fname
self.open_file = open(fname, 'r')
@ -53,7 +53,7 @@ class TtyIn(object):
def dismount(self):
"""Dismount the file on the TTYIN device."""
log("Dismounting '%s' on TTYIN" % self.filename)
# log("Dismounting '%s' on TTYIN" % self.filename)
if self.open_file:
self.open_file.close()
@ -67,7 +67,7 @@ class TtyIn(object):
def read(self):
"""Return the current device value."""
log("Reading TTYIN: returning %03o" % self.value)
# log("Reading TTYIN: returning %03o" % self.value)
return self.value
@ -79,7 +79,7 @@ class TtyIn(object):
def clear(self):
"""Clear the device 'ready' status."""
log("TTYIN: clearing flag")
# log("TTYIN: clearing flag")
self.status = self.DEVICE_NOT_READY