增加了语音抽签控制屏幕显示
增加了校准和财位控制电机旋转
This commit is contained in:
@@ -197,7 +197,14 @@ static void control_plane_responding_text_bridge(const char *text,
|
||||
|
||||
control_plane_model_command_type_t command_type = CONTROL_PLANE_MODEL_COMMAND_UNKNOWN;
|
||||
char value[32] = {0};
|
||||
if (!control_plane_extract_model_command(text, &command_type, value, sizeof(value))) {
|
||||
size_t value_index = 0U;
|
||||
bool value_index_valid = false;
|
||||
if (!control_plane_extract_model_command(text,
|
||||
&command_type,
|
||||
value,
|
||||
sizeof(value),
|
||||
&value_index,
|
||||
&value_index_valid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -213,8 +220,13 @@ static void control_plane_responding_text_bridge(const char *text,
|
||||
return;
|
||||
}
|
||||
|
||||
ESP_LOGI(TAG, "Device command: type=%d value=%s", (int)command_type, value);
|
||||
cb(command_type, value, cb_user_data);
|
||||
ESP_LOGI(TAG,
|
||||
"Device command: type=%d value=%s index=%u valid=%d",
|
||||
(int)command_type,
|
||||
value,
|
||||
(unsigned int)value_index,
|
||||
value_index_valid ? 1 : 0);
|
||||
cb(command_type, value, value_index, value_index_valid, cb_user_data);
|
||||
}
|
||||
|
||||
static esp_err_t control_plane_prepare_for_multimodal_start(void)
|
||||
|
||||
Reference in New Issue
Block a user