We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d599d2 commit 67f4da5Copy full SHA for 67f4da5
src/SparkFun_SiT5358.cpp
@@ -44,7 +44,7 @@ bool SfeSiT5358Driver::readRegisters(void)
44
45
// Extract the three 16-bit registers - MSB first
46
uint16_t register00 = (((uint16_t)theBytes[0]) << 8) | ((uint16_t)theBytes[1]); // Frequency Control LSW
47
- 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
48
uint16_t register02 = (((uint16_t)theBytes[4]) << 8) | ((uint16_t)theBytes[5]); // Pull Range Control
49
50
if ((register01 & 0xF800) != 0)
0 commit comments