Skip to content

Commit

Permalink
Initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
imabug committed Jul 23, 2017
1 parent 3004342 commit 3476d09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/si5351.cpp
Expand Up @@ -1237,7 +1237,7 @@ uint8_t Si5351::si5351_write(uint8_t addr, uint8_t data)

uint8_t Si5351::si5351_read(uint8_t addr)
{
uint8_t reg_val;
uint8_t reg_val = 0;

Wire.beginTransmission(i2c_bus_addr);
Wire.write(addr);
Expand Down Expand Up @@ -1550,7 +1550,8 @@ void Si5351::update_int_status(struct Si5351IntStatus *int_status)

void Si5351::ms_div(enum si5351_clock clk, uint8_t r_div, uint8_t div_by_4)
{
uint8_t reg_val, reg_addr;
uint8_t reg_val = 0;
uint8_t reg_addr = 0;

switch(clk)
{
Expand Down

0 comments on commit 3476d09

Please sign in to comment.