aboutsummaryrefslogtreecommitdiff
path: root/h-client/hlibrary.py
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-05-01 16:27:46 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-05-01 16:27:46 +0000
commitb01d7818be154028a757be81e5eea70061d97882 (patch)
tree9d71ba07f11e2da9825c1a2ace4a0513b840d694 /h-client/hlibrary.py
parentdfdf11645e1abc61d3bc2143f26e2dc3e59289fc (diff)
h-client: unknown devices now listed in the device tree
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r--h-client/hlibrary.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py
index 6c3803c..b78f452 100644
--- a/h-client/hlibrary.py
+++ b/h-client/hlibrary.py
@@ -421,6 +421,10 @@ class Client:
'0701ff' : {
'type' : 'printer',
'controller': 'printers'
+ },
+ '255255255' : {
+ 'type' : 'unknown',
+ 'controller': 'unknown'
}
}
@@ -484,6 +488,8 @@ class Client:
return Videocard()
elif Class == '070100' or Class == '070101' or Class == '070102' or Class == '070103' or Class == '0701ff':
return Printer()
+ elif Class == '255255255':
+ return Unknown()
else:
return None
@@ -574,6 +580,8 @@ class Client:
def addLeadingZero(self,string):
if len(string) == 1:
return '0'+string
+ else:
+ return string
def createDevices(self):