Parameter 'MAX_SS_CMDS' in simpleserial/simpleserial.c

Hi There,

A quick question about the parameter MAX_SS_CMDS found in simpleserial/simpleserial.c.
I noticed the docs state there is a limit of 16 commands which can be added to the target with SSV2.1 however I intend to increase this parameter MAX_SS_CMDS = 32, is this ok? Is there an absolute limit? (I supose 16 may be the limit… but why then allow it to be increased…)

thanks :slight_smile:

I don’t think there’d be any issue with increasing the maximum number of commands. The command field itself is limited to 1 byte, so 255 would be the hard maximum before you’d have to make breaking changes and even then you have a sub command field if you really want to go further.


1 Like