icE1usb fw/gpsdo: Add debug prints for coarse/fine tune entry

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ife69f9ce4c6f3eb6d40b05ce8f862ff68180357f
This commit is contained in:
Sylvain Munaut 2022-04-21 23:28:35 +02:00
parent 8014c3cd09
commit 103a83cbdc
1 changed files with 9 additions and 0 deletions

View File

@ -145,6 +145,11 @@ gpsdo_get_tune(uint16_t *coarse, uint16_t *fine)
static void
_gpsdo_coarse_start(void)
{
/* Debug */
#ifdef GPSDO_DEBUG
printf("[+] GPSDO Coarse Start: tune=%d:%d\n", g_gpsdo.tune.coarse, g_gpsdo.tune.fine);
#endif
/* Set the state */
g_gpsdo.state = STATE_TUNE_COARSE;
@ -165,6 +170,10 @@ _gpsdo_coarse_start(void)
static void
_gpsdo_fine_start(void)
{
#ifdef GPSDO_DEBUG
printf("[+] GPSDO Fine Start\n");
#endif
/* Set the state */
g_gpsdo.state = STATE_TUNE_FINE;