Skip to content

Commit

Permalink
Fix that bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Aug 2, 2024
1 parent 8d599d2 commit 67f4da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SparkFun_SiT5358.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 67f4da5

Please sign in to comment.