Closed michael-ring closed 5 months ago
si5351_i2c.pas(460,2) Warning: Case statement does not handle all possible cases
There seems to be a few cases missing in this case statement, please see Warning generated by compiler:
procedure si5351_set_ms_div(clk : Tsi5351_clock ; r_div : uint8 ; div_by_4 : uint8 ); var reg_val : uint8 = 0 ; reg_addr: uint8 = 0 ; begin case (clk) of SI5351_CLK0: reg_addr := SI5351_CLK0_PARAMETERS + 2; SI5351_CLK1: reg_addr := SI5351_CLK1_PARAMETERS + 2; SI5351_CLK2: reg_addr := SI5351_CLK2_PARAMETERS + 2; SI5351_CLK3: reg_addr := SI5351_CLK3_PARAMETERS + 2; SI5351_CLK4: reg_addr := SI5351_CLK4_PARAMETERS + 2; SI5351_CLK5: reg_addr := SI5351_CLK5_PARAMETERS + 2; end;
si5351_i2c.pas(460,2) Warning: Case statement does not handle all possible cases
There seems to be a few cases missing in this case statement, please see Warning generated by compiler:
procedure si5351_set_ms_div(clk : Tsi5351_clock ; r_div : uint8 ; div_by_4 : uint8 ); var reg_val : uint8 = 0 ; reg_addr: uint8 = 0 ; begin case (clk) of SI5351_CLK0: reg_addr := SI5351_CLK0_PARAMETERS + 2; SI5351_CLK1: reg_addr := SI5351_CLK1_PARAMETERS + 2; SI5351_CLK2: reg_addr := SI5351_CLK2_PARAMETERS + 2; SI5351_CLK3: reg_addr := SI5351_CLK3_PARAMETERS + 2; SI5351_CLK4: reg_addr := SI5351_CLK4_PARAMETERS + 2; SI5351_CLK5: reg_addr := SI5351_CLK5_PARAMETERS + 2; end;