Testing change of RNG START bit test in ax5043_autoranging

pull/6/head
alanbjohnston 7 years ago committed by GitHub
parent 6bb9b97fbd
commit d0ae44ea32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -447,11 +447,10 @@ int ax5043_set_tx_freq(ax5043_conf_t *conf, uint32_t freq) {
conf->tx_freq = freq;
/* If the frequency difference is great enough perform autoranging */
/*
if (freq + 25000000 > prev_freq || freq - 25000000 < prev_freq) {
ax5043_autoranging(conf);
}
*/
return PQWS_SUCCESS;
}
@ -622,7 +621,7 @@ int ax5043_autoranging(ax5043_conf_t *conf) {
usleep(10);
val = 0;
/* Wait until the autoranging is complete */
while ((val & BIT(4)) == 0) {
while ((val & BIT(4)) == 1) { // changed to 1 from 0, since https://www.onsemi.com/pub/Collateral/AND9347-D.PDF says BIT(4) RNG START clears when autoranging done
ret = ax5043_spi_read_8(conf, &val, pllranging_reg);
if (ret) {
return ret;

Loading…
Cancel
Save

Powered by TurnKey Linux.