diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/consts.h | 2 | ||||
-rw-r--r-- | shared/serial_parse.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |