From fd80dc7cb369517a219212b72cef73fe2828e7a5 Mon Sep 17 00:00:00 2001
From: Philipp Jungkamp
Date: Fri, 18 Jul 2025 15:34:48 +0200
Subject: [PATCH] - fix R-Session debug print statements
---
src/r_session/r_session.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/r_session/r_session.c b/src/r_session/r_session.c
index 538ad8ec..c15d2f9c 100644
--- a/src/r_session/r_session.c
+++ b/src/r_session/r_session.c
@@ -89,7 +89,7 @@ struct sRSession
int timeToNextKey;
};
-#ifdef DEBUG_RSESSION
+#if (DEBUG_RSESSION == 1)
static void
printBuffer(uint8_t* buffer, int bufSize)
{
@@ -1000,7 +1000,7 @@ encodePacket(RSession self, uint8_t payloadType, uint8_t* buffer, int bufPos, RS
int addPartSize = encryptedPartStartPos - startPos;
int encryptedPartSize = payloadEndPos - encryptedPartStartPos;
-#ifdef DEBUG_RSESSION
+#if (DEBUG_RSESSION == 1)
printBuffer(buffer + startPos, bufPos - startPos);
#endif
@@ -1053,7 +1053,7 @@ RSession_sendMessage(RSession self, RSessionProtocol_SPDU_ID spduId, bool simula
int msgSize = encodePacket(self, (uint8_t) spduId, self->sendBuffer, 0, &element);
-#ifdef DEBUG_RSESSION
+#if (DEBUG_RSESSION == 1)
printBuffer(self->sendBuffer, msgSize);
#endif