From 595763efb64ee861f3ccf458ff35992b94f2fa3a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 2 Jun 2022 19:14:08 +0200 Subject: [WIP] stop on connection lost in dirc --- shared/consts.h | 2 +- shared/serial_parse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shared') diff --git a/shared/consts.h b/shared/consts.h index 3f792b4..cd6dff1 100644 --- a/shared/consts.h +++ b/shared/consts.h @@ -22,7 +22,7 @@ /** size of the serial communication buffer (in messages, not bytes) */ #define W2_SERCOMM_BUFFER_SIZE (16) /** size of mode history buffer */ -#define W2_MODE_HISTORY_BUFFER_SIZE (4) +#define W2_MODE_HISTORY_BUFFER_SIZE (8) /** max logic module execution time in milliseconds */ #define W2_MAX_MODULE_CYCLE_MS (20) diff --git a/shared/serial_parse.c b/shared/serial_parse.c index 54b9ab5..d07c67f 100644 --- a/shared/serial_parse.c +++ b/shared/serial_parse.c @@ -51,7 +51,7 @@ void w2_cmd_handler(uint8_t data[W2_SERIAL_READ_BUFFER_SIZE], uint8_t data_lengt w2_errcatch_throw(W2_E_WARN_SERIAL_NOISY); } else { #ifdef W2_SIM - w2_sim_print_serial(copy); + if (DBG_ENABLE_SERIAL) w2_sim_print_serial(copy); #endif handler(copy); } -- cgit v1.2.3