From b01d7818be154028a757be81e5eea70061d97882 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 1 May 2011 16:27:46 +0000 Subject: h-client: unknown devices now listed in the device tree --- h-client/hlibrary.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'h-client/hlibrary.py') 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): -- cgit v1.2.3