From db2b6631ef0679fe9f5befb9618c873190a4d643 Mon Sep 17 00:00:00 2001 From: Denis Date: Sun, 26 Nov 2023 21:30:04 +0100 Subject: [PATCH] Do not alarm the user for a normal condition on start/stop --- output_dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/output_dev.c b/output_dev.c index 5c0fef6..22a8774 100644 --- a/output_dev.c +++ b/output_dev.c @@ -843,14 +843,15 @@ void *output_dev_rumble_thread_func(void* ptr) { rumble_msg->weak_magnitude = (uint16_t)right_motor << (uint16_t)8; const int rumble_emit_res = queue_push_timeout(&out_dev->logic->rumble_events_queue, (void*)rumble_msg, timeout_ms); - if (rumble_emit_res == 0) { printf("Rumble request propagated\n"); // update the rumble events counter: this rumble event was handled rumble_events_count = tmp_ev_count; } else { +#if defined(INCLUDE_OUTPUT_DEBUG) fprintf(stderr, "Error propating the rumble event: %d\n", rumble_emit_res); +#endif free(rumble_msg); }