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 Aug 14, 2021
1 parent fc59d6a commit c8a00ec
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions AVR_Miner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
##########################################
# Duino-Coin Python AVR Miner (v2.6)
# Duino-Coin Python AVR Miner (v2.6.1)
# https://github.com/revoxhere/duino-coin
# Distributed under MIT license
# © Duino-Coin Community 2019-2021
Expand Down Expand Up @@ -95,7 +95,7 @@ def now():
install('pypresence')

# Global variables
MINER_VER = '2.6' # Version number
MINER_VER = '2.61' # Version number
SOC_TIMEOUT = 45
PERIODIC_REPORT_TIME = 60
AVR_TIMEOUT = 3.1 # diff 6 * 100 / 196 h/s = 3.06
Expand Down Expand Up @@ -336,13 +336,13 @@ def load_config():
rig_identifier = 'None'

donation_level = '0'
if osname == 'nt' or osname == 'posix':
donation_level = input(
Style.RESET_ALL
+ Fore.YELLOW
+ get_string('ask_donation_level')
+ Fore.RESET
+ Style.BRIGHT)
#if osname == 'nt' or osname == 'posix':
# donation_level = input(
# Style.RESET_ALL
# + Fore.YELLOW
# + get_string('ask_donation_level')
# + Fore.RESET
# + Style.BRIGHT)

# Check wheter donation_level is correct
donation_level = sub(r'\D', '', donation_level)
Expand Down Expand Up @@ -457,17 +457,17 @@ def greeting():
+ Fore.YELLOW
+ ' '.join(avrport))

if osname == 'nt' or osname == 'posix':
print(
Style.DIM
+ Fore.MAGENTA
+ ' ‖ '
+ Style.NORMAL
+ Fore.RESET
+ get_string('donation_level')
+ Style.BRIGHT
+ Fore.YELLOW
+ str(donation_level))
#if osname == 'nt' or osname == 'posix':
# print(
# Style.DIM
# + Fore.MAGENTA
# + ' ‖ '
# + Style.NORMAL
# + Fore.RESET
# + get_string('donation_level')
# + Style.BRIGHT
# + Fore.YELLOW
# + str(donation_level))
print(
Style.DIM
+ Fore.MAGENTA
Expand Down

0 comments on commit c8a00ec

Please sign in to comment.