Merge pull request #3042 from SChernykh/dev
Fixed being unable to resume from pause-on-battery
This commit is contained in:
commit
c877ba8145
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ void xmrig::Miner::setEnabled(bool enabled)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d_ptr->battery_power && enabled) {
|
if (d_ptr->controller->config()->isPauseOnBattery() && d_ptr->battery_power && enabled) {
|
||||||
LOG_INFO("%s " YELLOW_BOLD("can't resume while on battery power"), Tags::miner());
|
LOG_INFO("%s " YELLOW_BOLD("can't resume while on battery power"), Tags::miner());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue