Fix RFM95 reset (#982)
I've verified that the datasheet says to go low, and checked that the commit history does not indicate a reason for doing otherwise.
This commit is contained in:
@@ -138,10 +138,10 @@ LOCAL bool RFM95_initialise(const uint32_t frequencyHz)
|
|||||||
RFM95_powerUp();
|
RFM95_powerUp();
|
||||||
#if defined(MY_RFM95_RST_PIN)
|
#if defined(MY_RFM95_RST_PIN)
|
||||||
hwPinMode(MY_RFM95_RST_PIN, OUTPUT);
|
hwPinMode(MY_RFM95_RST_PIN, OUTPUT);
|
||||||
hwDigitalWrite(MY_RFM95_RST_PIN, HIGH);
|
hwDigitalWrite(MY_RFM95_RST_PIN, LOW);
|
||||||
// 100uS
|
// 100uS
|
||||||
delayMicroseconds(100);
|
delayMicroseconds(100);
|
||||||
hwDigitalWrite(MY_RFM95_RST_PIN, LOW);
|
hwDigitalWrite(MY_RFM95_RST_PIN, HIGH);
|
||||||
// wait until chip ready
|
// wait until chip ready
|
||||||
delay(5);
|
delay(5);
|
||||||
RFM95_DEBUG(PSTR("RFM95:INIT:PIN,CS=%" PRIu8 ",IQP=%" PRIu8 ",IQN=%" PRIu8 ",RST=%" PRIu8 "\n"),
|
RFM95_DEBUG(PSTR("RFM95:INIT:PIN,CS=%" PRIu8 ",IQP=%" PRIu8 ",IQN=%" PRIu8 ",RST=%" PRIu8 "\n"),
|
||||||
|
|||||||
Reference in New Issue
Block a user