Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Furtif committed Mar 4, 2024
1 parent 3e21dc7 commit 329d62a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def hexeditor(self):
self.input.returnPressed.connect(self.send_manual_cmd)
self.output = widgets.QLineEdit()
self.output.setReadOnly(True)
hexvalidaor = core.QRegExp(("^[\\s0-9a-fA-F]+"))
hexvalidaor = core.QRegExp("^[\\s0-9a-fA-F]+")
rev = gui.QRegExpValidator(hexvalidaor, self)
self.input.setValidator(rev)
wlayout.addWidget(diaglabel)
Expand Down
4 changes: 3 additions & 1 deletion sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
class snifferThread(core.QThread):
# Use a thread to avoid ELM buffer flooding
try:
dataready = core.pyqtSignal(basestring)
# TODO:// basestring not defined use bytes.
# dataready = core.pyqtSignal(basestring)
dataready = core.pyqtSignal(bytes)
except:
dataready = core.pyqtSignal(str)

Expand Down
1 change: 1 addition & 0 deletions usbdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from usb import util, core, legacy

import elm
import options

# HID TYPES
USBRQ_HID_GET_REPORT = 0x01
Expand Down

0 comments on commit 329d62a

Please sign in to comment.