Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alandpearson
Copy link

to rf12_initialise again
fixed rf12_send_start to allow destId to be set correctly on sending

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
Copy link
Collaborator

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
/*
Copy link
Collaborator

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 );
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants