summaryrefslogtreecommitdiff
path: root/shared/serial_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared/serial_parse.c')
-rw-r--r--shared/serial_parse.c2
1 files changed, 1 insertions, 1 deletions
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);
}