+ def get_switches(self):
+ self.wfh.write('S\n')
+ (code, text) = self.get_response()
+ if code != '600':
+ return (False, code, text)
+ self.interpret_switches(text)
+ return (True, code, text)
+
+ def interpret_switches(self, text):
+ self.switches = (int(text[0:2], 16) << 8) | int(text[3:5], 16)
+