summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-02 19:14:08 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-02 19:14:08 +0200
commit595763efb64ee861f3ccf458ff35992b94f2fa3a (patch)
tree428ae0f7b474b8cb644fadcb4491ed7d8e4baffa /shared
parent14779cb187dac9ed4a0b6e7645e76e78587ad024 (diff)
[WIP] stop on connection lost in dirc
Diffstat (limited to 'shared')
-rw-r--r--shared/consts.h2
-rw-r--r--shared/serial_parse.c2
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);
}