From d5cdafda04202a4a6e2793ab250d1fecf7ad9bcf Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 5 Mar 2014 01:36:41 +0100 Subject: [PATCH] change default speed, fix getopt --- culfw.h | 2 +- flash-ota.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2