Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Mar 9, 2024
1 parent cea02b5 commit e41a7f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1780,11 +1780,17 @@ static THREAD_F cmd_listen_thread (void *arg)
// 00=Port 1
// 16=Port 2
//
// I don't know what that means; we already a port number in the header.
// The seems to be redundant; we already a port number in the header.
// Anyhow, the original code here added one to cmd.data to get the
// first byte of the frame. Unfortunately, it did not subtract one from
// cmd.hdr.data_len so we ended up sending an extra byte.

// TODO: Right now I just use the port (channel) number in the header.
// What if the second one is inconsistent?
// - Continue to ignore port number at beginning of data?
// - Use second one instead?
// - Error message if a mismatch?

memset (&alevel, 0xff, sizeof(alevel));
pp = ax25_from_frame ((unsigned char *)cmd.data+1, data_len - 1, alevel);

Expand Down

0 comments on commit e41a7f2

Please sign in to comment.