ignore keyboard mining overrides when on battery power

This commit is contained in:
cryptonote-social 2020-08-01 10:55:45 -07:00
parent bfb1b9475c
commit d08cb60d47

View File

@ -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 {