Added missing frequency set calls to the rf generator output.
This commit is contained in:
parent
ac9f77d8d5
commit
7a5140b313
1 changed files with 3 additions and 0 deletions
|
@ -323,16 +323,19 @@ void cc_enableClk(void)
|
|||
Serial.write(MSG_SOM2);
|
||||
if (cc_read_data[0] == SI5351_CLK0)
|
||||
{
|
||||
si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK0);
|
||||
si5351.output_enable(SI5351_CLK0, 1); // enable clock output 0
|
||||
Serial.write(MSG_TYPE_ANSWER_OK);
|
||||
}
|
||||
else if (cc_read_data[0] == SI5351_CLK1)
|
||||
{
|
||||
si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK1);
|
||||
si5351.output_enable(SI5351_CLK1, 1); // enable clock output 1
|
||||
Serial.write(MSG_TYPE_ANSWER_OK);
|
||||
}
|
||||
else if (cc_read_data[0] == SI5351_CLK2)
|
||||
{
|
||||
si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK2);
|
||||
si5351.output_enable(SI5351_CLK2, 1); // enable clock output 2
|
||||
Serial.write(MSG_TYPE_ANSWER_OK);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue