Commit e1921352 authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

gps/writer: removed undead remains from wbuffer

parent 5981a76f
......@@ -184,16 +184,9 @@ void gps_writer(void *arg)
mcan_Obj_Handle obj; /* Buffer: sci object handle */
gps_CAN_Data data; /* Buffer: data */
prot_Return p_ret = 0; /* Error returns */
int mindelay = -1;
int writer_disabled = 0;
gps_callbacks callback_struct;
alm_t writer_alarm;
writer_alarm = alm_create_event(writer_sem);
if (writer_alarm == NULL) {
gps_err(GPS_ALLOC, "gps_writer");
return;
}
taskwdInsert(epicsThreadGetIdSelf(), NULL, NULL);
......@@ -206,22 +199,15 @@ void gps_writer(void *arg)
epicsEventWaitStatus waitStat;
/* Wait for any pending message */
if (mindelay > 0) {
alm_start(writer_alarm, (alm_delay_t)mindelay);
}
waitStat = epicsEventWait(writer_sem);
assert(waitStat != epicsEventWaitError);
mindelay = -1;
/* Look who did it ... */
while (num_empty < gps_num_protocols) {
/* Ask protocols until each has returned PROT_EMPTY (or PROT_ERR) */
gps_entry = gpsNextProtocol(gps_entry);
/* Try to get the next message */
memset(&callback_struct, 0, sizeof(gps_callbacks));
p_ret = gps_entry->prot_get(&obj, data.b, &callback_struct);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment