fix indentation & typo
This commit is contained in:
@@ -134,12 +134,12 @@ serialVFD_init (Driver *drvthis)
|
|||||||
/* Read config file */
|
/* Read config file */
|
||||||
|
|
||||||
p->use_parallel = drvthis->config_get_bool( drvthis->name, "use_parallel", 0, 0 );
|
p->use_parallel = drvthis->config_get_bool( drvthis->name, "use_parallel", 0, 0 );
|
||||||
if (p->use_parallel){
|
if (p->use_parallel) {
|
||||||
p->port = drvthis->config_get_int( drvthis->name, "port", 0, LPTPORT );
|
p->port = drvthis->config_get_int( drvthis->name, "port", 0, LPTPORT );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Which device should be used */
|
/* Which device should be used */
|
||||||
strncpy(p->device, drvthis->config_get_string (drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device));
|
strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device));
|
||||||
p->device[sizeof(p->device)-1] = '\0';
|
p->device[sizeof(p->device)-1] = '\0';
|
||||||
report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device);
|
report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device);
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ serialVFD_init (Driver *drvthis)
|
|||||||
// report (RPT_ERR, "%s: Port: %X\n", __FUNCTION__, p->port, strerror (errno));
|
// report (RPT_ERR, "%s: Port: %X\n", __FUNCTION__, p->port, strerror (errno));
|
||||||
|
|
||||||
// Do connection type specific io-port init
|
// Do connection type specific io-port init
|
||||||
if (Port_Function[p->use_parallel].init_fkt (drvthis)==-1) {
|
if (Port_Function[p->use_parallel].init_fkt (drvthis) == -1) {
|
||||||
report(RPT_ERR, "%s: unable to initialize io-port.", drvthis->name);
|
report(RPT_ERR, "%s: unable to initialize io-port.", drvthis->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ serialVFD_load_NEC_FIPC (Driver *drvthis)
|
|||||||
int tmp, w;
|
int tmp, w;
|
||||||
|
|
||||||
if (p->customchars == -83)
|
if (p->customchars == -83)
|
||||||
p->customchars=1; // number of customchaaracters the display provides
|
p->customchars=1; // number of custom characters the display provides
|
||||||
p->vbar_cc_offset=5; // character offset of the bars
|
p->vbar_cc_offset=5; // character offset of the bars
|
||||||
p->hbar_cc_offset=12; // character offset of the bars
|
p->hbar_cc_offset=12; // character offset of the bars
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ serialVFD_load_KD (Driver *drvthis)
|
|||||||
int tmp, w;
|
int tmp, w;
|
||||||
|
|
||||||
if (p->customchars == -83)
|
if (p->customchars == -83)
|
||||||
p->customchars=31; // number of customchaaracters the display provides
|
p->customchars=31; // number of custom characters the display provides
|
||||||
p->vbar_cc_offset=0; // character offset of the bars
|
p->vbar_cc_offset=0; // character offset of the bars
|
||||||
p->hbar_cc_offset=0; // character offset of the bars
|
p->hbar_cc_offset=0; // character offset of the bars
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ serialVFD_load_Noritake (Driver *drvthis)
|
|||||||
int tmp, w;
|
int tmp, w;
|
||||||
|
|
||||||
if (p->customchars == -83)
|
if (p->customchars == -83)
|
||||||
p->customchars=16; // number of customchaaracters the display provides
|
p->customchars=16; // number of custom characters the display provides
|
||||||
p->vbar_cc_offset=0; // character offset of the bars
|
p->vbar_cc_offset=0; // character offset of the bars
|
||||||
p->hbar_cc_offset=0; // character offset of the bars
|
p->hbar_cc_offset=0; // character offset of the bars
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ serialVFD_load_Futaba (Driver *drvthis)
|
|||||||
int tmp, w;
|
int tmp, w;
|
||||||
|
|
||||||
if (p->customchars == -83)
|
if (p->customchars == -83)
|
||||||
p->customchars=3; // number of customchaaracters the display provides
|
p->customchars=3; // number of custom characters the display provides
|
||||||
p->vbar_cc_offset=0x30; // character offset of the bars
|
p->vbar_cc_offset=0x30; // character offset of the bars
|
||||||
p->hbar_cc_offset=0x30; // character offset of the bars
|
p->hbar_cc_offset=0x30; // character offset of the bars
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user