From a3197d626bc551983a5598d3c3a35e8e4de63e35 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 14 Oct 2023 20:05:47 +0800 Subject: [PATCH] update --- errorcode.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/errorcode.hpp b/errorcode.hpp index 93f05db..28c76d6 100644 --- a/errorcode.hpp +++ b/errorcode.hpp @@ -59,6 +59,7 @@ typedef enum { kce_cmd_not_found = ERROR_CODE(10000, 26), kce_cmd_param_num_error = ERROR_CODE(10000, 27), kce_no_such_module = ERROR_CODE(10000, 28), + kce_modbusCRC16checkfail = ERROR_CODE(10000, 29), /** * @brief STMP2错误 @@ -86,6 +87,17 @@ typedef enum { kSMTP2_TipAlreadyLoad = ERROR_CODE(20000, 20), // Tip已经装载 kSMTP2_TipLoadFail = ERROR_CODE(20000, 21), + /** + * @brief 单片机硬件错误 + */ + kmicro_noErr = ERROR_CODE(20050, 0), // + kmicro_uartSendFail = ERROR_CODE(20050, 1), // + kmicro_uartRecvFail = ERROR_CODE(20050, 2), // + + /** + * @brief modbus错误 + */ + } error_t; const char* error2str(int32_t code);