Skip to content

Commit

Permalink
Update AVR_Miner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Jun 5, 2021
1 parent 5ac3d63 commit ca39683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AVR_Miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def connect():
# Server connection
global server_ip
global server_port
serverVersion = 0
while True:
try:
try:
Expand All @@ -221,10 +222,10 @@ def connect():
ready = select.select([soc], [], [], SOCKET_TIMEOUT)
if ready[0]:
serverVersion = soc.recv(10).decode().rstrip('\n')
debug_output('Server version: ' + serverVersion)
else:
raise Exception("No ver received")

debug_output('Server version: ' + serverVersion)
if float(serverVersion) <= float(MINER_VER):
# If miner is up-to-date, display a message and continue
pretty_print(
Expand Down

0 comments on commit ca39683

Please sign in to comment.