switch(buf[0]) {
case HMUARTLGW_APP_RECV:
+ buf[3] = buf_len - 4;
dissect_hm(buf + 3, buf_len - 3);
case HMUARTLGW_APP_ACK:
break;
buf[1] = speed;
hmcfgusb_send(dev.hmcfgusb, buf, 2, 1);
} else {
- 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(1);