mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 22:46:59 +00:00
Set debugging on a per-file basis.
This commit is contained in:
parent
7d77f20ee9
commit
037f60ea06
10 changed files with 35 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue