mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: 截图失败时清空image_payload
This commit is contained in:
@@ -510,6 +510,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect
|
||||
return true;
|
||||
};
|
||||
|
||||
image_payload = {};
|
||||
if (m_adb.screencap_method == AdbProperty::ScreencapMethod::UnknownYet) {
|
||||
Log.info("Try to find the fastest way to screencap");
|
||||
auto min_cost = milliseconds(LLONG_MAX);
|
||||
|
||||
Reference in New Issue
Block a user