Skip to content

Commit

Permalink
fix level register address in transmit-wspr-message.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-demin committed Oct 23, 2019
1 parent a45aacf commit 988dd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/sdr_transceiver_wspr/app/transmit-wspr-message.c
Expand Up @@ -110,8 +110,8 @@ int main(int argc, char *argv[])
cfg = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40001000);
fifo = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40012000);

coef[0] = ((uint16_t *)(cfg + 40));
coef[1] = ((uint16_t *)(cfg + 42));
coef[0] = ((uint16_t *)(cfg + 72));
coef[1] = ((uint16_t *)(cfg + 74));

level = level > -90.0 ? floor(32766 * pow(10.0, level / 20.0) + 0.5) : 0.0;

Expand Down

0 comments on commit 988dd62

Please sign in to comment.