From e44da73e9a0714efab2c67f6f15904f7116b612e Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 25 Jan 2025 11:59:25 -0600 Subject: [PATCH] Revert "Fix CRC calculation in pmr171.c" Pull request being done instead This reverts commit 194e18f4e45c1afabeed7f838f32407851474239. --- rigs/yaesu/pmr171.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rigs/yaesu/pmr171.c b/rigs/yaesu/pmr171.c index 1d7d102c2..0799a290f 100644 --- a/rigs/yaesu/pmr171.c +++ b/rigs/yaesu/pmr171.c @@ -177,9 +177,9 @@ struct rig_caps pmr171_caps = RIG_MODEL(RIG_MODEL_PMR171), .model_name = "PMR-171", .mfg_name = "Guohe", - .version = "20250125.0", + .version = "20240704.0", .copyright = "LGPL", - .status = RIG_STATUS_STABLE, + .status = RIG_STATUS_ALPHA, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, @@ -456,7 +456,7 @@ static int pmr171_send_cmd1(RIG *rig, unsigned char cmd, unsigned char *reply) unsigned char buf[64] = { 0xa5, 0xa5, 0xa5, 0xa5, 0x03, 0x00, 0x00, 0x00 }; buf[5] = cmd; - unsigned int crc = CRC16Check(&buf[4], 2); + unsigned int crc = CRC16Check(&buf[4], 3); buf[6] = crc >> 8; buf[7] = crc & 0xff; rig_flush(rp); @@ -809,7 +809,7 @@ static int pmr171_set_freq(RIG *rig, vfo_t vfo, freq_t freq) to_bcd_be(&cmd[10], CACHE(rig)->freqMainB, 8); } - unsigned int crc = CRC16Check(&cmd[4], 2); + unsigned int crc = CRC16Check(&cmd[4], 12); cmd[14] = crc >> 8; cmd[15] = crc & 0xff; rig_flush(rp);