Skip to content

Commit

Permalink
fix: 修复一些参数错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 18, 2023
1 parent 787551a commit b31e2ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions binding/Python/maa/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def __init__(
super().__init__()
self._set_adb_api_properties()

self._callback_agent = CallbackAgent(callback, callback_arg)
self._handle = Library.framework.MaaAdbControllerCreateV2(
adb_path.encode("utf-8"),
address.encode("utf-8"),
Expand Down
2 changes: 1 addition & 1 deletion source/MaaFramework/API/MaaController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MaaControllerHandle MaaAdbControllerCreateV2(MaaStringView adb_path, MaaStringVi
LogFunc << VAR(adb_path) << VAR(address) << VAR(type) << VAR(agent_path) << VAR_VOIDP(callback)
<< VAR_VOIDP(callback_arg);

auto unit_mgr = MAA_CTRL_UNIT_NS::create_adb_controller_unit(adb_path, address, type, agent_path, config);
auto unit_mgr = MAA_CTRL_UNIT_NS::create_adb_controller_unit(adb_path, address, type, config, agent_path);
if (!unit_mgr) {
LogError << "Failed to create controller unit";
return nullptr;
Expand Down

0 comments on commit b31e2ac

Please sign in to comment.