From 67f4da518fba7ee64b391b433bec94f237cd75f8 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Fri, 2 Aug 2024 16:44:46 +0100 Subject: [PATCH] Fix that bug --- src/SparkFun_SiT5358.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparkFun_SiT5358.cpp b/src/SparkFun_SiT5358.cpp index faac9fc..c7bfa10 100644 --- a/src/SparkFun_SiT5358.cpp +++ b/src/SparkFun_SiT5358.cpp @@ -44,7 +44,7 @@ bool SfeSiT5358Driver::readRegisters(void) // Extract the three 16-bit registers - MSB first uint16_t register00 = (((uint16_t)theBytes[0]) << 8) | ((uint16_t)theBytes[1]); // Frequency Control LSW - uint16_t register01 = (((uint16_t)theBytes[2]) << 8) | ((uint16_t)theBytes[2]); // Frequency Control MSW + uint16_t register01 = (((uint16_t)theBytes[2]) << 8) | ((uint16_t)theBytes[3]); // Frequency Control MSW uint16_t register02 = (((uint16_t)theBytes[4]) << 8) | ((uint16_t)theBytes[5]); // Pull Range Control if ((register01 & 0xF800) != 0)