Skip to content

Commit

Permalink
fix hit/miss indicators when enabling multiple switches in successful…
Browse files Browse the repository at this point in the history
… attack

Signed-off-by: Manuel Rodríguez <[email protected]>
  • Loading branch information
malejo97 committed Nov 2, 2023
1 parent 8ad39ea commit 2c98ccf
Show file tree
Hide file tree
Showing 3 changed files with 21,306 additions and 21,308 deletions.
11 changes: 7 additions & 4 deletions gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def handle_line(self, line):

else:
self.rxSignal.emit(repr(line))

sys.stdout.write('RX: {}\n'.format(repr(line)))

# Called when connection is lost
def connection_lost(self, exc):
Expand Down Expand Up @@ -228,13 +226,18 @@ def setScene(self, index, sw):


if __name__ == "__main__":

if len(sys.argv) != 2:
sys.stderr.write('Wrong number of arguments!\nPlease, provide the path to the serial port connected to the FPGA board (e.g., /dev/ttyUSB0)')
exit()

app = QApplication(sys.argv)
win = DemoWindow()

win.setStyleSheet(ScrollBarStyleSheet)

# Initiate serial port
serial_port = Serial('/dev/ttyUSB0', baudrate=115200)
serial_port = Serial(sys.argv[1], baudrate=115200)

# Setup RX signal
PrintLines.rxSignal = win.SignalEmmiter.rxSignal
Expand All @@ -252,7 +255,7 @@ def setScene(self, index, sw):
# Start reader
reader.start()

win.show()
win.showFullScreen()

# reader.stop()
sys.exit(app.exec())
Loading

0 comments on commit 2c98ccf

Please sign in to comment.