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

FSK4_Mod.ino:103:11: error: return-statement with a value, in function returning 'void' return(n); #1

Open
KevWal opened this issue Oct 17, 2022 · 1 comment

Comments

@KevWal
Copy link

KevWal commented Oct 17, 2022

Hi

Thanks very much for the radiolib example code. If you wish to correct it, (among others) I get the following minor compile error:

\horusbinary_radiolib\FSK4_Mod.ino:103:11: error: return-statement with a value, in function returning 'void' [-fpermissive]
return(n);

And as we see it is indeed an error: https://github.com/projecthorus/horusbinary_radiolib/blob/main/FSK4_Mod.ino#L97

Correcting it to: "size_t fsk4_write(PhysicalLayer* phy, uint8_t* buff, size_t len){" solves that one.

Thanks very much
Kev

@KevWal
Copy link
Author

KevWal commented Oct 17, 2022

Apparently you can't call micros() or yield() the way they were done either, I assume these are things that have changed overtime in Arduino?

Module::micros() now needs to be just micros() and the same for yield().

Cheers
Kev

@cixio cixio mentioned this issue Aug 28, 2023
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

1 participant