Browse Source

Added missing frequency set calls to the rf generator output.

klaute 2 years ago
parent
commit
7a5140b313
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      firmware/command_ctrl.ino

+ 3
- 0
firmware/command_ctrl.ino View File

@@ -323,16 +323,19 @@ void cc_enableClk(void)
323 323
   Serial.write(MSG_SOM2);
324 324
   if (cc_read_data[0] == SI5351_CLK0)
325 325
   {
326
+    si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK0);
326 327
     si5351.output_enable(SI5351_CLK0, 1); // enable clock output 0
327 328
     Serial.write(MSG_TYPE_ANSWER_OK);
328 329
   }
329 330
   else if (cc_read_data[0] == SI5351_CLK1)
330 331
   {
332
+    si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK1);
331 333
     si5351.output_enable(SI5351_CLK1, 1); // enable clock output 1
332 334
     Serial.write(MSG_TYPE_ANSWER_OK);
333 335
   }
334 336
   else if (cc_read_data[0] == SI5351_CLK2)
335 337
   {
338
+    si5351.set_freq((uint64_t)start_freq * 100, SI5351_PLL_FIXED, SI5351_CLK2);
336 339
     si5351.output_enable(SI5351_CLK2, 1); // enable clock output 2
337 340
     Serial.write(MSG_TYPE_ANSWER_OK);
338 341
   } else {