From d28acc7d60589da1bfa11325f8132d66765a8183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=B0=E7=BA=B3?= <1595220980@qq.com> Date: Wed, 25 Jun 2025 17:01:21 +0800 Subject: [PATCH] Change the rig_debug and comments of guohetec.c and guohetec.h to English --- rigs/guohetec/guohetec.c | 14 +++++++------- rigs/guohetec/guohetec.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rigs/guohetec/guohetec.c b/rigs/guohetec/guohetec.c index f51567ffe..8f074f23b 100644 --- a/rigs/guohetec/guohetec.c +++ b/rigs/guohetec/guohetec.c @@ -73,10 +73,10 @@ uint16_t CRC16Check(const unsigned char *buf, int len) } /** - * 转换为大端字节序 - * @param data 数据指针 - * @param freq 频率值 - * @param byte_len 字节长度 + * Convert to big-endian byte order + * @param data Data pointer + * @param freq Frequency value + * @param byte_len Byte length */ unsigned char *to_be(unsigned char data[], unsigned long long freq, @@ -114,11 +114,11 @@ uint16_t CRC16Check(const unsigned char *buf, int len) } -// 初始化函数 +// Initialization function DECLARE_INITRIG_BACKEND(guohetec) { rig_debug(RIG_DEBUG_VERBOSE, "%s: Initializing guohetec \n", __func__); - // 注册驱动到hamlib + // Register driver to hamlib rig_debug(RIG_DEBUG_VERBOSE, "%s: Loading guohetec backend\n", __func__); rig_register(&pmr171_caps); rig_register(&q900_caps); @@ -126,7 +126,7 @@ DECLARE_INITRIG_BACKEND(guohetec) { return RIG_OK; } -// 探测函数实现 +// Probe function implementation DECLARE_PROBERIG_BACKEND(guohetec) { uint8_t cmd[PMR171_CMD_LENGTH] = { 0xA5, 0xA5, 0xA5, 0xA5, diff --git a/rigs/guohetec/guohetec.h b/rigs/guohetec/guohetec.h index c0e385758..a90153834 100644 --- a/rigs/guohetec/guohetec.h +++ b/rigs/guohetec/guohetec.h @@ -7,7 +7,7 @@ #define PMR171_CMD_LENGTH 8 #define PMR171_REPLY_LENGTH 24 -#define GUOHE_MODE_TABLE_MAX 8 // 协议定义的部分模式不支持,只有8种 +#define GUOHE_MODE_TABLE_MAX 8 extern struct rig_caps pmr171_caps; extern struct rig_caps q900_caps;