Set debugging on a per-file basis.

This commit is contained in:
Jonathan Naylor 2016-03-14 20:24:51 +00:00
parent 7d77f20ee9
commit 037f60ea06
10 changed files with 35 additions and 33 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2009-2015 by Jonathan Naylor G4KLX
* Copyright (C) 2009-2016 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
// #define WANT_DEBUG
#include "Config.h"
#include "Globals.h"
#include "YSFRX.h"
@ -503,7 +505,7 @@ void CYSFRX::processData(q15_t sample)
// We've not seen a data sync for too long, signal RXLOST and change to RX_NONE
m_lostCount--;
if (m_lostCount == 0U) {
// DEBUG1("YSFRX: sync timed out, lost lock");
DEBUG1("YSFRX: sync timed out, lost lock");
io.setDecode(false);
serial.writeYSFLost();
@ -528,7 +530,7 @@ void CYSFRX::processData(q15_t sample)
serial.writeYSFData(m_outBuffer, YSF_FRAME_LENGTH_BYTES + 1U);
if (ok && (FICH[0U] & 0xC0U) == 0x80U) {
// DEBUG1("YSFRX: end of transmission");
DEBUG1("YSFRX: end of transmission");
io.setDecode(false);
m_state = YSFRXS_NONE;
} else {