开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Getting stuck


 

Hello Jack,

may I ask you for a code validation?

I wanted to allow me to increase the tuning speed by pressing the button connected to A3.

So I made a modification to the doTuning function.

Seems to work, but I am not sure, if this has some flaws the way I did it. Could you please take a look at it and tell me what you think?

As you know, I am not yet familiar with coding Arduino sketches.

I attached my test sketch. Hope attaching workes.


BTW, there are warnings for every printLine1 and printLine2

E:\bitx40\raduino_new_library\raduino_new_library.ino:666:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

? ? ?printLine1("Raduino v1.01");


I fugured out, that there must be some reason why it does not want a string as paramater for the function. So I changed all this calls for example from

printLine1("Raduino v1.01");

to

? strcpy(c, "Raduino v1.01");

? printLine1(c);

Now all warnings are gone and it still seems to work.

Do I have to do it again, after I download the next version of the official sketch or could someone "repair" the original sketch?

Helmut, OE4HDS


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