Skip to content

Commit

Permalink
fix 2.0 compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Forairaaaaa committed Oct 25, 2024
1 parent ce97eeb commit 0b09b1f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/api/api_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ String ApiAsr::setup(ApiAsrSetupConfig_t config, String request_id)
}

String work_id;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&work_id](ResponseMsg_t& msg) {
// Copy work id
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ String ApiAudio::setup(ApiAudioSetupConfig_t config, String request_id)
}

String work_id;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&work_id](ResponseMsg_t& msg) {
// Copy work id
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_kws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ String ApiKws::setup(ApiKwsSetupConfig_t config, String request_id)
}

String work_id;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&work_id](ResponseMsg_t& msg) {
// Copy work id
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_llm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ String ApiLlm::setup(ApiLlmSetupConfig_t config, String request_id)
}

String llm_work_id;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&llm_work_id](ResponseMsg_t& msg) {
// Copy work id
Expand Down
4 changes: 2 additions & 2 deletions src/api/api_sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ static const char* _cmd_reset =
"{\"request_id\":\"sys_reset\",\"work_id\":\"sys\",\"action\":\"reset\",\"object\":\"None\",\"data\":\"None\"}";
static const char* _cmd_reboot =
"{\"request_id\":\"sys_reboot\",\"work_id\":\"sys\",\"action\":\"reboot\",\"object\":\"None\",\"data\":\"None\"}";
static const char* _cmd_ls_mode =
"{\"request_id\":\"sys_lsmode\",\"work_id\":\"sys\",\"action\":\"lsmode\",\"object\":\"None\",\"data\":\"None\"}";
// static const char* _cmd_ls_mode =
// "{\"request_id\":\"sys_lsmode\",\"work_id\":\"sys\",\"action\":\"lsmode\",\"object\":\"None\",\"data\":\"None\"}";

void ApiSys::init(ModuleMsg* moduleMsg)
{
Expand Down
4 changes: 2 additions & 2 deletions src/api/api_tts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ String ApiTts::setup(ApiTtsSetupConfig_t config, String request_id)
}

String work_id;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&work_id](ResponseMsg_t& msg) {
// Copy work id
Expand Down Expand Up @@ -61,7 +61,7 @@ int ApiTts::inference(String work_id, String input, uint32_t timeout, String req
}

int ret = MODULE_LLM_WAIT_RESPONSE_TIMEOUT;
bool is_time_out = _module_msg->sendCmdAndWaitToTakeMsg(
_module_msg->sendCmdAndWaitToTakeMsg(
cmd.c_str(), request_id,
[&ret](ResponseMsg_t& msg) {
// Copy error code
Expand Down

0 comments on commit 0b09b1f

Please sign in to comment.