From: Michael Gernoth Date: Wed, 5 Mar 2014 00:36:41 +0000 (+0100) Subject: change default speed, fix getopt X-Git-Tag: v0.100~26 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/d5cdafda04202a4a6e2793ab250d1fecf7ad9bcf?ds=inline change default speed, fix getopt --- diff --git a/culfw.h b/culfw.h index c0b0aed..8f64433 100644 --- a/culfw.h +++ b/culfw.h @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#define DEFAULT_CUL_BPS 19200 +#define DEFAULT_CUL_BPS 38400 typedef int (*culfw_cb_fn)(uint8_t *buf, int buf_len, void *data); diff --git a/flash-ota.c b/flash-ota.c index ea2bcad..2b6e75e 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -329,7 +329,7 @@ int main(int argc, char **argv) printf("HomeMatic OTA flasher version " VERSION "\n\n"); - while((opt = getopt(argc, argv, "f:s:c:s:h")) != -1) { + while((opt = getopt(argc, argv, "b:c:f:hs:")) != -1) { switch (opt) { case 'b': bps = atoi(optarg);