From 03da62a52d3fbb855168c4fa08e536aa433152e0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 3 Jun 2024 15:31:10 +0800 Subject: [PATCH] update --- api/apibasic/errorcode.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/apibasic/errorcode.cpp b/api/apibasic/errorcode.cpp index 09b11ce..e56c833 100644 --- a/api/apibasic/errorcode.cpp +++ b/api/apibasic/errorcode.cpp @@ -26,6 +26,7 @@ const char* error2str(int32_t code) { ERR2STR(kcheckcode_is_error); ERR2STR(kcatch_exception); ERR2STR(khwardware_error_fan_error); + ERR2STR(khwardware_error); ERR2STR(ksys_error); ERR2STR(ksys_create_file_error); ERR2STR(ksys_create_dir_error); @@ -44,6 +45,8 @@ const char* error2str(int32_t code) { ERR2STR(kmodule_error); ERR2STR(kmodule_not_find_config_index); ERR2STR(kmodule_not_find_state_index); + ERR2STR(kmodule_not_support_action); + ERR2STR(kmodule_not_find_reg); ERR2STR(kmotor_not_found_zero_point); ERR2STR(kmotor_did_not_go_zero); ERR2STR(kmotor_over_temperature); @@ -52,6 +55,8 @@ const char* error2str(int32_t code) { ERR2STR(kxymotor_not_found_y_zero_point); ERR2STR(kxymotor_x_find_zero_edge_fail); ERR2STR(kxymotor_y_find_zero_edge_fail); + ERR2STR(kmotor_run_overtime); + ERR2STR(kmotor_not_enable); ERR2STR(kSMTP2_NoError); ERR2STR(kSMTP2_InitFail); ERR2STR(kSMTP2_InvalidCmd); @@ -77,6 +82,15 @@ const char* error2str(int32_t code) { ERR2STR(kmicro_noErr); ERR2STR(kmicro_uartSendFail); ERR2STR(kmicro_uartRecvFail); + ERR2STR(kmicro_adcRecvFail); + ERR2STR(kstep_motor_not_found_zero_point); + ERR2STR(kstep_motor_not_go_zero); + ERR2STR(kstep_motor_over_temperature); + ERR2STR(kstep_motor_over_voltage); + ERR2STR(kstep_motor_run_overtime); + ERR2STR(kstep_motor_not_enable); + ERR2STR(kstep_motor_ioindex_out_of_range); + ERR2STR(kmini_servo_not_enable); default: return "known";