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 @@ ...@@ -35,7 +35,7 @@
// Variables // Variables
int idCounter = 1; int idCounter = 1;
RFM69 radio(CHIP_SELECT_PIN, INTERUP_PIN, true); RFM69 radio(CHIP_SELECT_PIN, INTERUP_PIN, true, INTERUP_PIN);
typedef struct typedef struct
{ {
...@@ -57,9 +57,14 @@ void setup() ...@@ -57,9 +57,14 @@ void setup()
Serial.println("openCanSat RFM69 receive test started"); Serial.println("openCanSat RFM69 receive test started");
// RFM69 initialize if(radio.initialize(FREQUENCY, MYNODEID, NETWORKID))
radio.initialize(FREQUENCY, MYNODEID, NETWORKID); {
radio.setHighPower(true); // Always use this for RFM69HW 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 :-; 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