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

rf_tx_datalink_packet() Incorrect Declaration #28

Open
kb1lqd opened this issue Oct 24, 2016 · 0 comments
Open

rf_tx_datalink_packet() Incorrect Declaration #28

kb1lqd opened this issue Oct 24, 2016 · 0 comments
Assignees
Labels

Comments

@kb1lqd
Copy link
Contributor

kb1lqd commented Oct 24, 2016

During documentation I found that this function in the header file was incorrectly defined as:

unsigned char rf_tx_datalink_packet(char *src_callsign, unsigned char src_callsign_len, unsigned char src_callsign_id, char *dest_callsign, unsigned char dest_callsign_len, unsigned char dest_callsign_id, unsigned char dest_callsign_id, unsigned char packet_config, unsigned char payload_len, unsigned char *payload);

which is incorrect (dest_callsign_id repeated in the packet_type argument location) and should be:

unsigned char rf_tx_datalink_packet(char *src_callsign, unsigned char src_callsign_len, unsigned char src_callsign_id, char *dest_callsign, unsigned char dest_callsign_len, unsigned char dest_callsign_id, unsigned char packet_type, unsigned char packet_config, unsigned char payload_len, unsigned char *payload);

The source file was correctly defined:

unsigned char rf_tx_datalink_packet(char *src_callsign, unsigned char src_callsign_len, unsigned char src_callsign_id, char *dest_callsign, unsigned char dest_callsign_len, unsigned char dest_callsign_id, unsigned char packet_type, unsigned char packet_config, unsigned char payload_len, unsigned char *payload)

This was not previously caught because RF protocol currently only implements a single packet so no checking is performed. The bug results in unknown data in the packet ID (likely the destination callsign ID).

@kb1lqd kb1lqd added the bug label Oct 24, 2016
@kb1lqd kb1lqd added this to the Initial Release milestone Oct 24, 2016
@kb1lqd kb1lqd self-assigned this Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant