checkpoint

This commit is contained in:
Alden Hart
2017-05-04 16:10:13 -04:00
parent 592f685164
commit 101c351511
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -533,7 +533,7 @@ stat_t cm_deferred_write_callback()
nvObj_t nv;
for (uint8_t i=1; i<=COORDS; i++) {
for (uint8_t j=0; j<AXES; j++) {
sprintf((char *)nv.token, "g%2d%c", 53+i, ("xyzabc")[j]);
sprintf((char *)nv.token, "g%2d%c", 53+i, ("xyzuvwabc")[j]);
nv.index = nv_get_index((const char *)"", nv.token);
nv.value_flt = cm->coord_offset[i][j];
nv_persist(&nv); // Note: nv_persist() only writes values that have changed
+6 -4
View File
@@ -79,10 +79,12 @@
* - a system group is identified by "sys" and contains a collection of otherwise unrelated values
*
* "Uber-groups" are groups of groups that are only used for text-mode printing - e.g.
* - group of all axes groups
* - group of all motor groups
* - group of all offset groups
* - group of all groups
* - group of all motor groups (m)
* - group of all axes groups (q)
* - group of all offset groups (o)
* - group of all digital input groups (di)
* - group of all digital output groups (do)
* - group of all groups ($)
*/
/* --- Making changes and adding new values
*
+1 -1
View File
@@ -1657,7 +1657,7 @@ static stat_t _do_motors(nvObj_t *nv) // print parameters for all motor groups
static stat_t _do_axes(nvObj_t *nv) // print parameters for all axis groups
{
char list[][TOKEN_LEN+1] = {"x","y","z","a","b","c",""}; // must have a terminating element
char list[][TOKEN_LEN+1] = {"x","y","z","u","v","w","a","b","c",""}; // must have a terminating element
return (_do_group_list(nv, list));
}