remove debug sleep
This commit is contained in:
parent
0221ba358f
commit
99534c8c6c
@ -5,7 +5,7 @@
|
|||||||
# By Chrys, Storm Dragon, and contributers.
|
# By Chrys, Storm Dragon, and contributers.
|
||||||
|
|
||||||
import difflib
|
import difflib
|
||||||
import re, time
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from core import debug
|
from core import debug
|
||||||
from utils import screen_utils
|
from utils import screen_utils
|
||||||
@ -20,7 +20,6 @@ class driver():
|
|||||||
def getCurrScreen(self):
|
def getCurrScreen(self):
|
||||||
self.env['screenData']['oldTTY'] = self.env['screenData']['newTTY']
|
self.env['screenData']['oldTTY'] = self.env['screenData']['newTTY']
|
||||||
try:
|
try:
|
||||||
time.sleep(0.1)
|
|
||||||
currScreenFile = open('/sys/devices/virtual/tty/tty0/active','r')
|
currScreenFile = open('/sys/devices/virtual/tty/tty0/active','r')
|
||||||
self.env['screenData']['newTTY'] = str(currScreenFile.read()[3:-1])
|
self.env['screenData']['newTTY'] = str(currScreenFile.read()[3:-1])
|
||||||
currScreenFile.close()
|
currScreenFile.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user