From 67939810666adb0f510e5d6e173e6c9e8231889f Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 5 May 2022 21:13:02 +0200 Subject: [PATCH] Fixed being unable to resume from pause-on-battery Fixes #3041 --- src/core/Miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 8bfccd64..1a24b87e 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -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;