From de09bac4c47831c20c9ccdffca41479501ff2e37 Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Sun, 14 Feb 2021 22:59:44 -0800 Subject: [PATCH] Fixed issue decoding reference adjust values. --- rigcommander.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rigcommander.cpp b/rigcommander.cpp index ce62bb3..1c8646e 100644 --- a/rigcommander.cpp +++ b/rigcommander.cpp @@ -1048,11 +1048,11 @@ void rigCommander::parseDetailedRegisters1A05() { case 72: // course reference - emit haveRefAdjustCourse( bcdHexToDecimal(payloadIn[5]) + (10*bcdHexToDecimal(payloadIn[6])) ); + emit haveRefAdjustCourse( bcdHexToDecimal(payloadIn[5]) + (100*bcdHexToDecimal(payloadIn[4])) ); break; case 73: // fine reference - emit haveRefAdjustFine( bcdHexToDecimal(payloadIn[5]) + (10*bcdHexToDecimal(payloadIn[6])) ); + emit haveRefAdjustFine( bcdHexToDecimal(payloadIn[5]) + (100*bcdHexToDecimal(payloadIn[4])) ); break; default: break; @@ -1400,7 +1400,7 @@ QByteArray rigCommander::bcdEncodeInt(unsigned int num) char b0 = hundreds | (thousands << 4); char b1 = units | (tens << 4); - qDebug() << __FUNCTION__ << " encoding value " << num << " as hex:"; + //qDebug() << __FUNCTION__ << " encoding value " << num << " as hex:"; //printHex(QByteArray(b0), false, true); //printHex(QByteArray(b1), false, true);