diff options
Diffstat (limited to '')
-rw-r--r-- | drv_WincorNixdorf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drv_WincorNixdorf.c b/drv_WincorNixdorf.c index 6c5976e..b016dc9 100644 --- a/drv_WincorNixdorf.c +++ b/drv_WincorNixdorf.c @@ -140,7 +140,7 @@ static int drv_WN_start(const char *section, const int quiet) drv_generic_serial_write(ESC "[0c", 4); usleep(100 * 1000); - if ((len = drv_generic_serial_read(buffer, -sizeof(buffer))) > 0) { + if ((len = drv_generic_serial_read(buffer, -1 * sizeof(buffer))) > 0) { info("%s: waiting 15 seconds for selftest", Name); drv_generic_serial_write(buffer, len); sleep(15); @@ -269,8 +269,8 @@ int drv_WN_quit(const int quiet) DRIVER drv_WincorNixdorf = { - name:Name, - list:drv_WN_list, - init:drv_WN_init, - quit:drv_WN_quit, + .name = Name, + .list = drv_WN_list, + .init = drv_WN_init, + .quit = drv_WN_quit, }; |