*** empty log message ***
r1052 | dcl | 2006-08-09 15:50:37 +1000 (Wed, 09 Aug 2006) | 2 lines
This commit is contained in:
@@ -367,9 +367,8 @@ static int MonPause(CounterDriver *cntrData) {
|
||||
BeamMon *self = NULL;
|
||||
|
||||
self = (BeamMon *) cntrData->pData;
|
||||
MonWrite(self, "SICS PAUSE");
|
||||
self->buffer.length = sizeof(self->buffer.body);
|
||||
if (MonRead(self, self->buffer.body, &self->buffer.length) == SUCCESS) {
|
||||
if (MonSend(cntrData, "SICS PAUSE",
|
||||
self->buffer.body, sizeof(self->buffer.body)) == SUCCESS) {
|
||||
self->state = HWPause;
|
||||
return SUCCESS;
|
||||
}
|
||||
@@ -384,9 +383,8 @@ static int MonContinue(CounterDriver *cntrData) {
|
||||
BeamMon *self = NULL;
|
||||
|
||||
self = (BeamMon *) cntrData->pData;
|
||||
MonWrite(self, "SICS CONTINUE");
|
||||
self->buffer.length = sizeof(self->buffer.body);
|
||||
if (MonRead(self, self->buffer.body, &self->buffer.length) == SUCCESS) {
|
||||
if (MonSend(cntrData, "SICS CONTINUE",
|
||||
self->buffer.body, sizeof(self->buffer.body)) == SUCCESS) {
|
||||
self->state = HWBusy;
|
||||
return SUCCESS;
|
||||
}
|
||||
@@ -400,9 +398,8 @@ static int MonHalt(CounterDriver *cntrData) {
|
||||
BeamMon *self = NULL;
|
||||
|
||||
self = (BeamMon *) cntrData->pData;
|
||||
MonWrite(self, "SICS STOP");
|
||||
self->buffer.length = sizeof(self->buffer.body);
|
||||
if (MonRead(self, self->buffer.body, &self->buffer.length) == SUCCESS) {
|
||||
if (MonSend(cntrData, "SICS STOP",
|
||||
self->buffer.body, sizeof(self->buffer.body)) == SUCCESS) {
|
||||
self->state = HWBusy;
|
||||
return SUCCESS;
|
||||
}
|
||||
@@ -418,9 +415,8 @@ static int MonReadValues(CounterDriver *cntrData) {
|
||||
|
||||
flog('.', "MonReadValues");
|
||||
self = (BeamMon *) cntrData->pData;
|
||||
MonWrite(self, "SICS READ");
|
||||
self->buffer.length = sizeof(self->buffer.body);
|
||||
if (MonRead(self, self->buffer.body, &self->buffer.length) == SUCCESS) {
|
||||
if (MonSend(cntrData, "SICS READ",
|
||||
self->buffer.body, sizeof(self->buffer.body)) == SUCCESS) {
|
||||
/* TODO*/
|
||||
HandleReport(cntrData, &self->buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user