dstroy0 / InputHandler

Arduino input handler
https://dstroy0.github.io/InputHandler/
GNU General Public License v3.0
1 stars 0 forks source link

nested parameters input behavior #21

Closed dstroy0 closed 2 years ago

dstroy0 commented 2 years ago

NO_ARGS conditions need adjusting in launchLogic

dstroy0 commented 2 years ago

I'm digging into this in about an hour.

dstroy0 commented 2 years ago

the problem was in the error output:

uint16_t err_n_args = (prm.max_num_args > (data_pointers_index_max - _current_search_depth))
                                      ? (data_pointers_index_max - _current_search_depth)
                                      : prm.max_num_args;    

_current_search_depth aligns the index correctly, I was using failed_on_subcommand previously which would wrap err_n_args around to the 250s and silent crash.