Add extra debugging.

This commit is contained in:
Jonathan Naylor 2016-07-13 07:19:50 +01:00
parent 8278415572
commit 87422228cd
1 changed files with 4 additions and 2 deletions

View File

@ -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);