Commit d4ab6667 authored by Markéta Jedličková's avatar Markéta Jedličková
Browse files

Init for RFM69 bug fixed

parent ed05cb79
......@@ -35,7 +35,7 @@
// Variables
int idCounter = 1;
RFM69 radio(CHIP_SELECT_PIN, INTERUP_PIN, true);
RFM69 radio(CHIP_SELECT_PIN, INTERUP_PIN, true, INTERUP_PIN);
typedef struct
{
......@@ -57,9 +57,14 @@ void setup()
Serial.println("openCanSat RFM69 receive test started");
// RFM69 initialize
radio.initialize(FREQUENCY, MYNODEID, NETWORKID);
radio.setHighPower(true); // Always use this for RFM69HW
if(radio.initialize(FREQUENCY, MYNODEID, NETWORKID))
{
radio.setHighPower(true); // Always use this for RFM69HW
}
else
{
Serial.println("RFM69HW initialization failed!");
}
Serial.println(); // print new line on serial to make the output look better :-;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment