Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move tokenizing into command functions (don't mix globals and funct…
…ion parameters) * rename pch -> s uniformly * fix double-tokenize e.g. in setDebug() * lots of cleanup for get/setSpindle(), get/setSpindleOverride() and get/setBrake() * fixed segfault of "get spindle" without argument * fixed snprintf() compiler warnings * support multiple spindles * make spindlenum the last input argument * output NML errors after NML failures (untested) * fix off-by-one in max-spindle test * replace EMCMOT_MAX_SPINDLES with actual number of spindles * add missing "zero input items parsed" check for sscanf() * fix cppcheck warnings * handle NML errors in setEstop() * add "get update" command * replace write() and sockWrite() with dprintf() where applicable * eliminate sockWrite() * fix all \n\r -> \r\n (remember "ReturN") * pass string literals if there's no format string * prefer using string literals * use spindle 0 by default, not all spindles * fix helptext * handle errors in all send*() functions * rename *_s -> *Str according to previous style * fix missing argument documentation * make getTeleopEnable() output ON/OFF instead of YES/NO according to setTeleopEnable() using checkOnOff(); fix help text * rename set_wait -> wait_mode * eliminate initMain() * rename initSockets -> initSocket * remove unneeded includes * replace strncpy() with rtapi_strlcpy(); commenting * use sizeof() to loop over array instead of last array element; prefer for over while * introduce OUT() helper macro * replace snprintf(context->outBuf,...) with OUT() macro; don't use string substitution excessively * output TOOL_OFFSET as double * make axisnumber() parse all possible notations * treat set/getFeedOverride percent as double * fix commandSet() returns * rewrite getAbs/Rel*Pos, getJointPos, getPosOffset * fix commandGet return values * cleanup parseCommand * formatting * more error handling * more error user feedback * more input validation * minor cleanups
- Loading branch information