Skip to content

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
// 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.

#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?

// 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