Intermediate commit - changing canonical machine struct to work by pointer - not absolute. Compiles. Does not run.

This commit is contained in:
Alden Hart
2016-12-09 07:41:31 -05:00
parent 58a615358f
commit a4330f42cc
20 changed files with 704 additions and 680 deletions

2
g2core/persistence.cpp Executable file → Normal file
View File

@@ -71,7 +71,7 @@ stat_t read_persistent_value(nvObj_t *nv)
stat_t write_persistent_value(nvObj_t *nv)
{
if (cm.cycle_state != CYCLE_OFF) { // can't write when machine is moving
if (cm->cycle_state != CYCLE_OFF) { // can't write when machine is moving
return(rpt_exception(STAT_FILE_NOT_OPEN, "write_persistent_value() can't write when machine is in cycle"));
}
return (STAT_OK);