Skip to content

Commit

Permalink
fix debug_registers
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Mar 26, 2024
1 parent 0fc12b4 commit 432ffda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug_registers/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int dump_fsk_registers(const uint8_t *regs) {
printf("0x06: RegFr:\n");
printf("\tFrf=%" PRIu64 "\n", ((freq * 32000000) / (1 << 19)));
printf("0x09: RegPaConfig:\n");
value = regs[0x07];
value = regs[0x09];
if ((value & 0b10000000) == 0b10000000) {
printf("\tPaSelect=PA_BOOST pin\n");
} else {
Expand Down Expand Up @@ -779,7 +779,7 @@ int dump_lora_registers(uint8_t *regs) {
printf("0x06: RegFr:\n");
printf("\tFrf=%" PRIu64 "\n", ((freq * 32000000) / (1 << 19)));
printf("0x09: RegPaConfig:\n");
value = regs[0x07];
value = regs[0x09];
if ((value & 0b10000000) == 0b10000000) {
printf("\tPaSelect=PA_BOOST pin\n");
} else {
Expand Down

0 comments on commit 432ffda

Please sign in to comment.