Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
log last sent telegram on error
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Apr 27, 2021
1 parent 65c3b1d commit 2a0e38a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/telegram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,10 @@ void TxService::retry_tx(const uint8_t operation, const uint8_t * data, const ui
reset_retry_count(); // give up
increment_telegram_fail_count(); // another Tx fail

LOG_ERROR(F("Last Tx %s operation failed after %d retries. Ignoring request."),
LOG_ERROR(F("Last Tx %s operation failed after %d retries. Ignoring request: %s"),
(operation == Telegram::Operation::TX_WRITE) ? F("Write") : F("Read"),
MAXIMUM_TX_RETRIES);
MAXIMUM_TX_RETRIES,
telegram_last_->to_string().c_str());
return;
}

Expand Down

0 comments on commit 2a0e38a

Please sign in to comment.