mirror of
https://github.com/synthetos/g2.git
synced 2026-02-05 10:39:53 +08:00
Intermediate commit - changing canonical machine struct to work by pointer - not absolute. Compiles. Does not run.
This commit is contained in:
2
g2core/persistence.cpp
Executable file → Normal file
2
g2core/persistence.cpp
Executable file → Normal 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);
|
||||
|
||||
Reference in New Issue
Block a user