Skip to content

Commit

Permalink
check spi connectivity for c1101
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Krämer <christian.kraemer@tngtech.com>
  • Loading branch information
Christian Krämer committed Oct 29, 2022
1 parent b2a757f commit 20f4ead
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main/ZgatewayRF.ino
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ void setupRF() {
Log.notice(F("RF_EMITTER_GPIO: %d " CR), RF_EMITTER_GPIO);
Log.notice(F("RF_RECEIVER_GPIO: %d " CR), RF_RECEIVER_GPIO);
# ifdef ZradioCC1101 //receiving with CC1101
if (ELECHOUSE_cc1101.getCC1101()) {
Log.notice("C1101 spi Connection OK");
} else {
Log.error("C1101 spi Connection Error");
}

ELECHOUSE_cc1101.Init();
ELECHOUSE_cc1101.SetRx(receiveMhz);
# endif
Expand Down

0 comments on commit 20f4ead

Please sign in to comment.