Commit dddd7b18 authored by Lucas Russo's avatar Lucas Russo

examples/si571_ctl.c: add frequency readback

parent 9760e41a
...@@ -141,6 +141,15 @@ int main (int argc, char *argv []) ...@@ -141,6 +141,15 @@ int main (int argc, char *argv [])
goto err_bpm_set_freq; goto err_bpm_set_freq;
} }
double freq = 0;
err = bpm_get_si571_freq (bpm_client, service, &freq);
fprintf (stderr, "[client:si571_ctl]: Si571 Set frequency failed\n");
goto err_bpm_set_freq;
printf ("Freq: %f\n", freq);
err_bpm_client_new: err_bpm_client_new:
err_bpm_set_freq: err_bpm_set_freq:
bpm_client_destroy (&bpm_client); bpm_client_destroy (&bpm_client);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment