-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added rf12_set_sender_id to allow senderID to be switched without having #108
base: master
Are you sure you want to change the base?
Conversation
to rf12_initialise again fixed rf12_send_start to allow destId to be set correctly on sending
@@ -8,8 +8,9 @@ | |||
|
|||
// Modify the RF12 driver in such a way that it can inter-operate with RFM69 | |||
// modules running in "native" mode. This affects packet layout and some more. | |||
#define RF12_COMPAT 0 | |||
#define RF12_COMPAT 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Native mode on the RFM69 is not the default mode of operation.
@@ -14,6 +14,11 @@ | |||
#endif | |||
|
|||
#if RF12_COMPAT | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this change do?
@@ -497,7 +502,8 @@ void rf12_sendStart (uint8_t hdr) { | |||
uint8_t parity = group ^ (group << 4); | |||
parity = (parity ^ (parity << 2)) & 0xC0; | |||
// the lower 6 bits are the destination, or zer of broadcasting | |||
rf12_dst = parity | (hdr & RF12_HDR_DST ? hdr & RF12_HDR_MASK : 0); | |||
//rf12_dst = parity | (hdr & RF12_HDR_DST ? hdr & RF12_HDR_MASK : 0); | |||
rf12_dst = parity | ( hdr & RF12_HDR_MASK ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't grasp what this change does.
to rf12_initialise again
fixed rf12_send_start to allow destId to be set correctly on sending