Arduino-SerialCommand icon indicating copy to clipboard operation
Arduino-SerialCommand copied to clipboard

Bug Issue or me is not good use sCmd.next () . ??

Open libre opened this issue 7 years ago • 0 comments

Hello,

Thank you for your project is nice as a project. I noticed a problem and I would like to know if it would come from a bug in your library.

So, I will try to explain the problem!

I have several functions that find calling by the sCmD menu and in two function works with a new menu that expects an argument.

As with your example. =

arg = sCmd.next (); if (arg! = NULL) { aNumber = atoi (arg);

If this function is last in my code it works fine.

On the other hand, as to explain, I have two function of this type ... So either one or the other does not work. By reversing the order, one works and the other does not work anymore. This translates as if it is not executing the code and returning the echo bits of the other function. It's really strange because suddenly, I can not use two function that uses sCmd.next () ... Do you think I have to rename the variables "aNumber" and "atoi" every time I use it in my functions which are calling by the menu?

Waiting for your help Thank you in advance,

Félix

libre avatar Feb 26 '18 17:02 libre