From c8ab9515da19d3ccf2f91cc51800e132b7eb4d3f Mon Sep 17 00:00:00 2001 From: Koutaro Mukai Date: Wed, 22 Nov 2023 07:39:23 +0900 Subject: [PATCH] Rename debug_println --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5ef9378..ad978c2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -237,12 +237,12 @@ void setup() Serial1.setRX(1); Serial1.begin(); mutex_exit(&serial1_mutex); -#define Serial1_println(msg) \ +#define debug_println(msg) \ mutex_enter_blocking(&serial1_mutex); \ Serial1.println(msg); \ mutex_exit(&serial1_mutex); #else -#define Serial1_println(msg) ((void)0) +#define debug_println(msg) ((void)0) #endif // Setup for SG90 @@ -310,14 +310,14 @@ void loop() inactive_count = 0; uint8_t packet = Serial.read(); - Serial1_println(packet); + debug_println(packet); NxamfGamepadState *state = nxamf_bytes_buffer_append(buffer, packet); if (state == NULL) { return; } - Serial1_println(format_state(state)); + debug_println(format_state(state)); reflect_state(state); nxamf_gamepad_state_delete(state); @@ -336,6 +336,6 @@ void loop1() if (!ret) { - Serial1_println("GC is not powered on or not connected."); + debug_println("GC is not powered on or not connected."); } } \ No newline at end of file