Add test for USB version string

This commit is contained in:
NIIBE Yutaka
2012-08-02 17:44:08 +09:00
parent 61ec9b7ed7
commit 7575dda42a
3 changed files with 14 additions and 0 deletions

View File

@@ -77,6 +77,9 @@ class gnuk_token(object):
self.__timeout = 10000
self.__seq = 0
def get_string(self, num):
return self.__devhandle.getString(num, 512)
def increment_seq(self):
self.__seq = (self.__seq + 1) & 0xff