]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - flash-ota.c
flash-hmmoduart: add utility to upgrade firmware on HM-MOD-UART
[hmcfgusb] / flash-ota.c
index 55748f9b829882812fd57fb9fd0e328c85ca9202..2a7a815ce59cc78a646575c3fe20ad042e6abc2c 100644 (file)
@@ -704,9 +704,8 @@ int main(int argc, char **argv)
                uint32_t new_hmid = my_hmid;
 
                hmuartlgw_set_debug(debug);
-               hmuartlgw_set_debug(1);
 
-               dev.hmuartlgw = hmuart_init(uart, parse_hmuartlgw, &rdata);
+               dev.hmuartlgw = hmuart_init(uart, parse_hmuartlgw, &rdata, 1);
                if (!dev.hmuartlgw) {
                        fprintf(stderr, "Can't initialize HM-MOD-UART\n");
                        exit(EXIT_FAILURE);
Impressum, Datenschutz