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

NPR70 code won't compile due to mismatch in function call #2

Open
evertverduin opened this issue Jan 15, 2024 · 2 comments
Open

NPR70 code won't compile due to mismatch in function call #2

evertverduin opened this issue Jan 15, 2024 · 2 comments

Comments

@evertverduin
Copy link

Hi all,

The code from github does not compile with the following error:

[Error] Virt_Chan.cpp@15,60: too few arguments to function 'uint32_t W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
[ERROR] .\source\Virt_Chan.cpp: In function 'int RTP_gateway(W5500_chip*)':
.\source\Virt_Chan.cpp:15:60: error: too few arguments to function 'uint32_t

W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data);

It seems that the function call ( from Virt_Chan.cpp ) to WS5500 ( W5500.cpp) needs an extra parameter, named len of type uint32.

This needs to be ( in Virt_Chan.cpp ):

size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data, RX_size); //RX_size is add.

Am i correct?

Evert Verduin

@dranch
Copy link

dranch commented Jan 15, 2024

If you don't receive a response from Ed, you might consider posting your question at https://groups.io/g/New-Packet-Radio/ where other NPR firmware developers might be.

@evertverduin
Copy link
Author

evertverduin commented Jan 15, 2024 via email

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

No branches or pull requests

2 participants