-/* $Id: drv_LEDMatrix.c,v 1.6 2006/08/13 18:14:03 harbaum Exp $
+/* $Id: drv_LEDMatrix.c,v 1.7 2006/08/13 18:45:25 harbaum Exp $
*
* LED matrix driver for LCD4Linux
* (see http://www.harbaum.org/till/ledmatrix for hardware)
*
*
* $Log: drv_LEDMatrix.c,v $
+ * Revision 1.7 2006/08/13 18:45:25 harbaum
+ * Little cleanup ...
+ *
* Revision 1.6 2006/08/13 18:14:03 harbaum
* Added KVV plugin
*
// wait 1 sec for ack
if ((i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv)) < 0) {
- perror("select");
+ info("%s: Select error: %s", Name, strerror(errno));
}
if (FD_ISSET(sock, &rfds)) {
fromlen = sizeof(dsp_addr);
i = recvfrom(sock, reply, sizeof(reply), 0, (struct sockaddr *) &cli_addr, &fromlen);
if (i < 0) {
- perror("recvfrom");
+ info("%s: Receive error: %s", Name, strerror(errno));
} else {
if ((i == 2) && (reply[0] == DSP_CMD_ACK) && (reply[1] == DSP_CMD_IMAGE)) {
ack = 1;
// } else if((i > 1) && (reply[0] == DSP_CMD_IR)) {
// ir_receive(reply+1, i-1);
} else {
- fprintf(stderr, "Unexpected reply message\n");
+ info("%s: Unexpected reply message", Name);
}
}
}
-/* $Id: plugin_kvv.c,v 1.1 2006/08/13 18:14:03 harbaum Exp $
+/* $Id: plugin_kvv.c,v 1.2 2006/08/13 18:45:25 harbaum Exp $
*
* plugin kvv (karlsruher verkehrsverbund)
*
*
*
* $Log: plugin_kvv.c,v $
+ * Revision 1.2 2006/08/13 18:45:25 harbaum
+ * Little cleanup ...
+ *
* Revision 1.1 2006/08/13 18:14:03 harbaum
* Added KVV plugin
*
if (index < shm->entries) {
SetResult(&result, R_STRING, shm->entry[index].line);
} else
- SetResult(&result, R_STRING, "---");
+ SetResult(&result, R_STRING, "");
mutex_unlock(mutex);
}
if (index < shm->entries)
SetResult(&result, R_STRING, shm->entry[index].station);
else
- SetResult(&result, R_STRING, "---");
+ SetResult(&result, R_STRING, "");
mutex_unlock(mutex);
}
sprintf(str, "%d", shm->entry[index].time);
SetResult(&result, R_STRING, str);
} else
- SetResult(&result, R_STRING, "---");
+ SetResult(&result, R_STRING, "");
mutex_unlock(mutex);
}