Browse Source

优化函数注释

niujiuru 1 month ago
parent
commit
44186ddfb4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mcu_ctrl_board/proc_rpc2.go

+ 2 - 2
mcu_ctrl_board/proc_rpc2.go

@@ -92,7 +92,7 @@ func SendRPC2Request(req *jsonrpc2.Request, timeout int /*单位: ms*/) (*jsonrp
 	}
 	}
 }
 }
 
 
-// 主动发出请求的应答
+// 获取主动请求的应答
 func handleRPC2Response(jsonStr string) error {
 func handleRPC2Response(jsonStr string) error {
 	w, err := jsonrpc2.ParseResponse(jsonStr)
 	w, err := jsonrpc2.ParseResponse(jsonStr)
 	if err != nil {
 	if err != nil {
@@ -179,7 +179,7 @@ func processRPC2(jsonStr string) *C.char {
 	return wret()
 	return wret()
 }
 }
 
 
-// 文本回显本地测试方法
+// 数据回显本地测试方法
 func test_echo(r *jsonrpc2.Request) (*jsonrpc2.Response, error) {
 func test_echo(r *jsonrpc2.Request) (*jsonrpc2.Response, error) {
 	if r.Params == nil {
 	if r.Params == nil {
 		return jsonrpc2.BuildError(r, jsonrpc2.ErrInvalidParams, ""), nil
 		return jsonrpc2.BuildError(r, jsonrpc2.ErrInvalidParams, ""), nil