Merge pull request #3042 from SChernykh/dev

Fixed being unable to resume from pause-on-battery
This commit is contained in:
xmrig 2022-05-06 02:14:52 +07:00 committed by GitHub
commit c877ba8145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -515,7 +515,7 @@ void xmrig::Miner::setEnabled(bool enabled)
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());
return;