From cb7204269140ba9c6dbe44ca5a5dbaf8c031f685 Mon Sep 17 00:00:00 2001 From: Joe Kearney Date: Sat, 22 Mar 2025 14:28:51 -0500 Subject: [PATCH] Improved logging in the Playing_Interacting state. --- States/Playing/State_Playing__Interacting.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/States/Playing/State_Playing__Interacting.c b/States/Playing/State_Playing__Interacting.c index 0b1fd32..ddb9f44 100644 --- a/States/Playing/State_Playing__Interacting.c +++ b/States/Playing/State_Playing__Interacting.c @@ -306,6 +306,10 @@ static void Playing__Interacting_Do(StateMachineContext_T * context) xQueueSend(xQueueNeoPixels, &neopixels_action, 0); Increment_Tags_Received(); + +#ifdef LOG_INTERACTING_SUBSTATE + KLOG_INFO(KLOG_TAG, "%u of %u health remaining", KTAG_Game_Data.My_Health, KTAG_Game_Data.Max_Health); +#endif // LOG_INTERACTING_SUBSTATE } } else if (player_ID != my_player_ID) @@ -345,7 +349,7 @@ static void Playing__Interacting_Do(StateMachineContext_T * context) case KEVENT_BLE_PACKET_RECEIVED: #ifdef LOG_INTERACTING_SUBSTATE - KLOG_INFO(KLOG_TAG, "KEVENT_BLE_PACKET_RECEIVED from %s", BLE_ADDR_To_Str(((BLE_Packet_T *)Event.Data)->Generic.BD_ADDR)); + //KLOG_INFO(KLOG_TAG, "KEVENT_BLE_PACKET_RECEIVED from %s", BLE_ADDR_To_Str(((BLE_Packet_T *)Event.Data)->Generic.BD_ADDR)); #endif // LOG_INTERACTING_SUBSTATE if (((BLE_Packet_T *)Event.Data)->Generic.type == BLE_PACKET_TYPE_STATUS) {