From 87422228cd8b5f444adcf6b0e6c47fc21aac2836 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 13 Jul 2016 07:19:50 +0100 Subject: [PATCH] Add extra debugging. --- DStarTX.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DStarTX.cpp b/DStarTX.cpp index 6fee338..1456bc0 100644 --- a/DStarTX.cpp +++ b/DStarTX.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -// #define WANT_DEBUG +#define WANT_DEBUG #include "Config.h" #include "Globals.h" @@ -306,8 +306,10 @@ uint8_t CDStarTX::writeData(const uint8_t* data, uint8_t length) return 4U; uint16_t space = m_buffer.getSpace(); - if (space < (DSTAR_DATA_LENGTH_BYTES + 1U)) + if (space < (DSTAR_DATA_LENGTH_BYTES + 1U)) { + DEBUG2("D-Star, space available", space); return 5U; + } m_buffer.put(DSTAR_DATA);