diff --git a/src/executor/executer_base_serial.py b/src/executor/executer_base_serial.py index 59edb70..ad6b81b 100644 --- a/src/executor/executer_base_serial.py +++ b/src/executor/executer_base_serial.py @@ -71,7 +71,7 @@ def connect_to_device(self, port): self.usb_device = serial.Serial(port.device, baudrate=115200, timeout=.1) self.controller.update_executor_menu() - setattr(self.settings, KEY_LAST_CONNECTED_DEFAULT, str(port.vid) + "-" + str(port.pid)) + setattr(self.settings, self.KEY_LAST_CONNECTED_DEVICE, str(port.vid) + "-" + str(port.pid)) self.controller.update_title_description("Connected to: " + port.name) # TODO Send connection test message diff --git a/src/executor/executer_pico.py b/src/executor/executer_pico.py index 96ca877..45f2716 100644 --- a/src/executor/executer_pico.py +++ b/src/executor/executer_pico.py @@ -50,10 +50,6 @@ def prepare(self): self.keyDelayJitter = getattr(self.settings, KEY_DELAY_JITTER, KEY_DELAY_JITTER_DEFAULT) self.triggerDelay = getattr(self.settings, TRIGGER_DELAY, TRIGGER_DELAY_DEFAULT) self.triggerDelayJitter = getattr(self.settings, TRIGGER_DELAY_JITTER, TRIGGER_DELAY_JITTER_DEFAULT) - - def send_bytes(self, bytes): - if self.pico is not None: - self.pico.write(bytes) def parse_macro_key(self, key): if key in self.key_map: