mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
ignore keyboard mining overrides when on battery power
This commit is contained in:
parent
bfb1b9475c
commit
d08cb60d47
5
miner.go
5
miner.go
@ -359,6 +359,11 @@ func startKeyboardScanning(uname string) {
|
||||
}
|
||||
}
|
||||
if len(b) == 0 {
|
||||
// Ignore enter-hit mining override if on battery power
|
||||
if atomic.LoadInt32(&batteryPower) > 0 {
|
||||
crylog.Warn("on battery power, keyboard overrides ignored")
|
||||
continue
|
||||
}
|
||||
pokeSuccess := pokeJobDispatcher(ENTER_HIT_POKE)
|
||||
if pokeSuccess {
|
||||
if atomic.LoadInt32(&manualMinerToggle) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user