¿ªÔÆÌåÓý

Re: Programming Issues and Questions


 

¿ªÔÆÌåÓý

Peter:
That did it, thanks. I should have remembered that myself, not the first time I experienced it.

Howard

On 6/25/2018 1:59 AM, Peter Aiea wrote:

For what its worth, I had a similar error (function does not return a value) on the macbook. The same code compiled on the win10 system. Updating the arduino ide for the mac to the latest version resolved the compile error.

On Sun, Jun 24, 2018, 20:02 Howard Fidel <sonic1@...> wrote:
Jack:
That helps, but now I get other errors. There are also lots of warnings.

invalid conversion from 'const byte* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]

Howard



On 6/24/2018 10:14 PM, Jack Purdum via Groups.Io wrote:
I don't think Farhan meant to return anything from the function. As a test, change the function's signature from:

?? int menuBand(int btn){

to

?? void menuBand(int btn){

and see what happens. I didn't see any statements in any of the files where a return value from menuBand() is used in an assignment statement, so it should be OK using void.

Jack, W8TEE

On Sunday, June 24, 2018, 5:45:04 PM EDT, Howard Fidel <sonic1@...> wrote:


I am integrating my uBitx into an old HA 350 receiver? chassis. It has a band switch on it, so I want to program A7 to read the switch. I downloaded several different versions of code to find a good starting point. When I use any of Farhan's versions, I get a compile error:?
return-statement with no value, in function returning 'int' [-fpermissive]
?
It is a return in ubitx_menu in the if(!btn) statement that causes this.

I tried Ron, W2CTX's ubitx_V2_00R and i see what looks like coding errors, although it compiles. The error is that A7 is not declared, and digital dash is declared as A3. A3 is PTT
KD8CEC's uBitx_20 compiles.?

Any input on which code is best would be appreciated. I would also like to know how to fix the compiling error so I can reinstall the factory code if I need to.

Thanks,

Howard



Join [email protected] to automatically receive all group messages.