Skip to content

Commit

Permalink
RFM69: Fix compiler warnings (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
tekka007 authored and mfalkvidd committed Dec 28, 2017
1 parent b148d82 commit 292dc84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/RFM69/new/RFM69_new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,13 +1259,13 @@ LOCAL void RFM69_readAllRegs(void)
capVal = (regVal >> 2) & 0x7;
if (capVal == 0b000) {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : 000 -> Sleep mode (SLEEP)\n"));
} else if (capVal = 0b001) {
} else if (capVal == 0b001) {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : 001 -> Standby mode (STDBY)\n"));
} else if (capVal = 0b010) {
} else if (capVal == 0b010) {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : 010 -> Frequency Synthesizer mode (FS)\n"));
} else if (capVal = 0b011) {
} else if (capVal == 0b011) {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : 011 -> Transmitter mode (TX)\n"));
} else if (capVal = 0b100) {
} else if (capVal == 0b100) {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : 100 -> Receiver Mode (RX)\n"));
} else {
RFM69_DEBUG(PSTR("RFM69:DUMP:Mode : %d capVal \n"), capVal);
Expand Down
6 changes: 6 additions & 0 deletions drivers/RFM69/new/RFM69_new.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ LOCAL rfm69_RSSI_t RFM69_readRSSI(bool forceTrigger = false);
*/
LOCAL void RFM69_ATCmode(const bool onOff, const int16_t targetRSSI = RFM69_TARGET_RSSI_DBM);

#ifdef MY_DEBUG_VERBOSE_RFM69_REGISTERS
/**
* @brief RFM69_readAllRegs Read and display RFM69 register contents
*/
LOCAL void RFM69_readAllRegs(void);
#endif
// ************************ LISTENMODE SECTION ************************

#if defined(MY_RFM69_ENABLE_LISTENMODE)
Expand Down

0 comments on commit 292dc84

Please sign in to comment.