sdcd = SDCONN_open(port);
if (sdcd == NULL) {
error("%s: open(%s) failed: %s", Name, port, sd_geterrormsg());
+ info("%s: examples:\n serraw:/dev/ttyS0\n par:/dev/parport0\n USB:<vendor>/<product>", Name);
return -1;
}
void widget_text_scroll(void *Self)
{
WIDGET *W = (WIDGET *) Self;
+ if (NULL == W || NULL == W->data) {
+ error("Warning: internal data error in Textwidget");
+ return;
+ }
WIDGET_TEXT *T = W->data;
char *prefix = P2S(&T->prefix);
int num, len, width, pad;
char *src, *dst;
+ if (NULL == string) {
+ error("Warning: Widget %s has no string", W->name);
+ return;
+ }
num = 0;
len = strlen(string);
width = T->width - strlen(prefix) - strlen(postfix);