PSI UPDATE

r2720 | ffr | 2008-10-13 15:40:07 +1100 (Mon, 13 Oct 2008) | 2 lines
This commit is contained in:
Ferdi Franceschini
2008-10-13 15:40:07 +11:00
committed by Douglas Clowes
183 changed files with 20455 additions and 3661 deletions

View File

@@ -664,6 +664,17 @@ int SimAction(SConnection *pCon, SicsInterp *pSics, void *pData,
else if(strcasecmp("reset", argv[1]) == 0) { }
else if(strcasecmp("state", argv[1]) == 0) { }
else if(strcasecmp("trace", argv[1]) == 0) { }
else if(strcasecmp("thread0", argv[1]) == 0) {
char line[132];
snprintf(line, 132, "%s.thread0 = %d", argv[0], 1);
SCWrite(pCon, line, eStatus);
return 1;
} else if(strcasecmp("posit", argv[1]) == 0) {
char line[132];
snprintf(line, 132, "%s.posit = %f", argv[0], 1.0);
SCWrite(pCon, line, eStatus);
return 1;
}
}
return MotorAction(pCon, pSics, pData, argc, argv);
}