Skip to content

Commit

Permalink
Add some debug timing
Browse files Browse the repository at this point in the history
  • Loading branch information
ngraziano committed May 3, 2024
1 parent a7124fa commit 08e9c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lmic/lmic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ void Lmic::setupRxC() {
}

OsTime Lmic::schedRx12(OsDeltaTime delay, rps_t rps) {
PRINT_DEBUG(2, F("SchedRx RX1/2"));
PRINT_DEBUG(1, F("SchedRx RX1/2 @ %" PRIu32), (txend + delay).tick());

// Half symbol time for the data rate.
const OsDeltaTime hsym = OsDeltaTime(Lmic::timeBySymbol(rps).tick() / 2);
Expand Down Expand Up @@ -1236,7 +1236,7 @@ void Lmic::wait_end_rx() {

dataLen = radio.handle_end_rx(frame, true);

PRINT_DEBUG(1, F("End RX - Start RX : %" PRIi32 " us "),
PRINT_DEBUG(1, F("End RX - Open RX : %" PRIi32 " us "),
(now - rxtime).to_us());
rxtime = now;

Expand Down

0 comments on commit 08e9c32

Please sign in to comment.