Commit b3b4309c authored by Lucas Russo's avatar Lucas Russo

hal/sm_io/chips/_ad9510.c: fix wrong register address in cp_current ()

This fixes #77 github issue.
parent f2f7ea21
......@@ -535,7 +535,7 @@ smch_err_e smch_ad9510_set_cp_current (smch_ad9510_t *self, uint32_t *cp_current
/* Get the respective code to be written in the register */
AD9510_PLL_3_CP_CURRENT_W(
__cp_current/AD9510_PLL3_CP_CURRENT_MIN - 1);
_smch_ad9510_write_8 (self, AD9510_REG_PLL_2, &data);
_smch_ad9510_write_8 (self, AD9510_REG_PLL_3, &data);
_smch_ad9510_reg_update (self);
/* Wait for reset to complete */
......
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